Re: [Tutor] multithreading random()

2006-10-10 Thread John Fouhy
On 10/10/06, Dick Moores <[EMAIL PROTECTED]> wrote: > I can get what appears to be a random number precise(?) to 17 digits. > How many base-10 digits would a "53-bit > precision float" have, if converted to base 10? > > >>> 2 ** 52 > 4503599627370496L > >>> 2**53 > 9007199254740992L > >>> > > >

Re: [Tutor] multithreading random()

2006-10-10 Thread John Fouhy
On 10/10/06, Dick Moores <[EMAIL PROTECTED]> wrote: > Didn't know about Google's code search, > . What was your search string? Search string was just "jumpahead lang:python". Had to scroll past a bunch of results for python/random.py before I found those, though.

Re: [Tutor] multithreading random()

2006-10-10 Thread Dick Moores
At 09:51 PM 10/9/2006, you wrote: >On 10/10/06, Dick Moores <[EMAIL PROTECTED]> wrote: > > And another question. That page also says, "Almost all module > > functions depend on the basic function random(), which generates a > > random float uniformly in the semi-open range [0.0, 1.0). Python uses >

Re: [Tutor] multithreading random()

2006-10-10 Thread Dick Moores
At 09:57 PM 10/9/2006, you wrote: >On 10/10/06, Dick Moores <[EMAIL PROTECTED]> wrote: > > Please refer to > > , from > which I quote: > > > > "The functions supplied by this module are actually bound methods of > > a hidden instance of the

Re: [Tutor] multithreading random()

2006-10-09 Thread John Fouhy
On 10/10/06, Dick Moores <[EMAIL PROTECTED]> wrote: > Please refer to > , from which I > quote: > > "The functions supplied by this module are actually bound methods of > a hidden instance of the random.Random class. You can instantiate > y

Re: [Tutor] multithreading random()

2006-10-09 Thread John Fouhy
On 10/10/06, Dick Moores <[EMAIL PROTECTED]> wrote: > And another question. That page also says, "Almost all module > functions depend on the basic function random(), which generates a > random float uniformly in the semi-open range [0.0, 1.0). Python uses > the Mersenne Twister as the core generat

[Tutor] multithreading random()

2006-10-09 Thread Dick Moores
Please refer to , from which I quote: "The functions supplied by this module are actually bound methods of a hidden instance of the random.Random class. You can instantiate your own instances of Random to get generators that don't share