[Tutor] Using the time module to extract a semi-random number

Alan Gauld alan.gauld at btinternet.com
Thu Sep 17 19:37:30 CEST 2009


"Patrick Sabin" <patrick.just4fun at gmail.com> wrote

> import random
> number = random.randint(0,59)
> 
> The latter looks clearer to me.

Me too, but if the object is to get the learner using the 
time module it doesn't help! :-)

But if the object is really to get a random number then
its much better...

Alan G.



More information about the Tutor mailing list