[Numpy-discussion] randint for long type (permutations)
Fri Jun 15 13:03:37 CDT 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