[Numpy-discussion] sample without replacement
Mon Dec 20 21:49:25 CST 2010
On Mon, Dec 20, 2010 at 10:19 PM, Alan G Isaac <email@example.com> wrote:
> On 12/20/2010 9:41 PM, firstname.lastname@example.org 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.
Sorry, I was reading to fast, and I might be tired.
What's the difference between a numpy Random and a python
random.Random instance of separate states of the random number
> Which reminds me of another question.
> numpy.random.RandomState accepts an int array as a seed:
> what is the *intended* use?
> NumPy-Discussion mailing list
More information about the NumPy-Discussion