[Numpy-discussion] sample without replacement

Alan G Isaac alan.isaac at gmail.com
Mon Dec 20 22:19:21 EST 2010

On 12/20/2010 9:41 PM, josef.pktd at gmail.com wrote:
> python has it in random
> sample( population, k)

Yes, I mentioned this in my original post:

But good simulation practice is perhaps to seed
a simulation specific random number generator
(not just rely on a global), and I don't want
to pass around two different instances.
So I want to get this functionality from numpy.random.

Which reminds me of another question.
numpy.random.RandomState accepts an int array as a seed:
what is the *intended* use?


More information about the NumPy-Discussion mailing list