[Numpy-discussion] randint for long type (permutations)
robert.kern at gmail.com
Fri Jun 15 14:03:37 EDT 2007
Will Woods wrote:
> The range of N I need is from 5-100, which spans the highly likely to
> highly improbable for M around 1000-10000. The permutation can be
> derived from an integer using the algorithm here:
Actually, I take it back. It's not as bad as I thought it was. However, instead
of cobbling together the bits, just use random.randrange().
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the NumPy-Discussion