Skip to content

Instantly share code, notes, and snippets.

@kartikm
Forked from shabda/gist:5317134
Last active December 15, 2015 20:19
Show Gist options
  • Save kartikm/5317429 to your computer and use it in GitHub Desktop.
Save kartikm/5317429 to your computer and use it in GitHub Desktop.
What will be output of this? :)
import random
import string
def random_word_from_seed(seed, l):
random.seed(seed)
letters = string.ascii_lowercase
return ''.join([random.choice(letters) for i in range(l)])
print random_word_from_seed(1944062, 5) +" "+random_word_from_seed(2068527, 5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment