-
-
Save kartikm/5317429 to your computer and use it in GitHub Desktop.
What will be output of this? :)
This file contains 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
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