Skip to content

Instantly share code, notes, and snippets.

@andrewrk
Created February 15, 2016 03:27
Show Gist options
  • Save andrewrk/73742bf4b8ed795c85ce to your computer and use it in GitHub Desktop.
Save andrewrk/73742bf4b8ed795c85ce to your computer and use it in GitHub Desktop.
origin of the zig programming language name. https://github.com/andrewrk/zig/
import string
import random
vowels = "aoeuiy"
def m():
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
Copy link

But that generates 4 letter names...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment