Random and whrandom

Alex Martelli aleaxit at yahoo.com
Sat Jan 20 07:07:18 EST 2001


<cpsoct at my-deja.com> wrote in message news:94bj03$59v$1 at nnrp1.deja.com...
> does random call whrandom or are they two completly different random
> number algorhythms? I could never figure that out. And Rand? That is
> depreciated, no? Why is there random *and* whrandom and when do you use
> which?

random calls whrandom.  Call random -- it's the 'higher-level'/'abstract'
module; whrandom is the 'implementation detail' (should have been
named with a leading underscore to hint at this...).


Alex






More information about the Python-list mailing list