On Thu, 26 May 2011 05:45:30 am Alan Gauld wrote: [...] > using > the choice() function from the whrandom module. > > passwd = [whrandom.choice(series) for n in range(p)]
whrandom was deleted in Python 2.5! I'm not sure when it was formally deprecated, but the recommended way of getting random numbers has been the random module all the way back to version 1.5! Since version 2.3, Python has been using the Mersenne Twister as the default random number generator, instead of Wichmann-Hill. Mersenne Twister is *much* better and stronger than WH. -- Steven D'Aprano _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor