[Tutor] Random module.. or? CORRECTION

Kent Johnson kent37 at tds.net
Wed Aug 8 02:03:35 CEST 2007


Alan Gauld wrote:
> d = random.choice(range(26))
> 
> replaces all of it!

or d = random.randrange(26)

no need to creat the list at all.

Kent


More information about the Tutor mailing list