[BangPypers] What is the output of this python program?
Shabda Raaj
shabda at agiliq.com
Fri Apr 5 08:46:33 CEST 2013
Something I found interesting. (Please try answering before running in the
interpretor).
https://gist.github.com/shabda/5317134
--
import random
import string
def random_word_from_seed(seed, len):
random.seed(seed)
letters = string.ascii_lowercase
return ''.join([random.choice(letters) for i in range(len)])
print random_word_from_seed(1944062, 5) +" "+random_word_from_seed(2068527, 5)
--
Thanks,
Shabda
Agiliq.com - Building Amazing Apps
agiliq.com/blog/ | github.com/agiliq
US: +13152854388 | IN: +919949997612 | Skype: shabda.raaj
Our Android Apps <https://play.google.com/store/apps/developer?id=Agiliq> | Our
iOS Apps <https://itunes.apple.com/us/artist/agiliq/id407918088>
More information about the BangPypers
mailing list