[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sorting NaNs

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.