Instantly share code, notes, and snippets.
Save andrewrk/73742bf4b8ed795c85ce to your computer and use it in GitHub Desktop.
origin of the zig programming language name.https://github.com/andrewrk/zig/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| importstring | |
| importrandom | |
| vowels="aoeuiy" | |
| defm(): | |
| c1=vowels[random.randint(0,len(vowels)-1)] | |
| c2=string.ascii_lowercase[random.randint(0,len(string.ascii_lowercase)-1)] | |
| c3=string.ascii_lowercase[random.randint(0,len(string.ascii_lowercase)-1)] | |
| print('z'+c1+c2+c3) | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() | |
| m() |
daurnimator commentedMay 28, 2022
But that generates 4 letter names...
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment