Re: [Numpy-discussion] randint for long type (permutations)

2007-06-15 Thread Will Woods
() enables randrange() to handle arbitrarily large ranges. New in version 2.4. Thanks for all the replies. Will Anne Archibald wrote: > On 14/06/07, Will Woods <[EMAIL PROTECTED]> wrote: > >> I want to choose a subset of all possible permutations of a sequence of >> length

Re: [Numpy-discussion] randint for long type (permutations)

2007-06-15 Thread Will Woods
() enables randrange() to handle arbitrarily large ranges. New in version 2.4. Thanks for all the replies. Will Anne Archibald wrote: > On 14/06/07, Will Woods <[EMAIL PROTECTED]> wrote: > >> I want to choose a subset of all possible permutations of a sequence of >> length

[Numpy-discussion] randint for long type (permutations)

2007-06-14 Thread Will Woods
I want to choose a subset of all possible permutations of a sequence of length N, with each element of the subset unique. This is then going to be scattered across multiple machines using mpi. Since there is a one-to-one mapping between the integers in the range 0 <= x < N! and the possible pe