Sorting NaNs

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Jun 8 02:23:44 EDT 2018


Michael Lamparski wrote:

> In any case, it's verifiably not true for CPython.

Yes, CPython uses a particularly good PRNG. You may not be
as lucky using libraries that come with other languages.
A great many PRNG algorithms have been proposed, and a
good proportion of them produce 32-bit ints as their
basic output.

Of course, this isn't necessarily a problem, since
you can always stick two of them together if you need
more bits. But for the majority of purposes, 32 bits
is probably all you need anyway.

-- 
Greg



More information about the Python-list mailing list