python newbie

Peter Hansen peter at engcorp.com
Sun Apr 7 18:51:32 EDT 2002


> >>I'm using the time module to make part of the game random and
[...]
> >
> > Use the random module.
> 
> Yep. For example:
> 
> ---
> import random
> 
> # No vaule - uses time on it's own
> random.seed()

Random seeds itself using time.time() so this is unnecessary 
in simple code.

-Peter



More information about the Python-list mailing list