Re: [Numpy-discussion] np.random.multinomial weird results

2009-03-07 Thread josef . pktd
On Sat, Mar 7, 2009 at 6:57 PM, Robert Kern wrote: > On Sat, Mar 7, 2009 at 17:29,   wrote: >> np.random.multinomial  looks weird. Are these bugs, or is there >> something not correct with the explanation. > > I would like to know how you are interpreting the documentation. > >> Josef >> >> from t

Re: [Numpy-discussion] np.random.multinomial weird results

2009-03-07 Thread Robert Kern
On Sat, Mar 7, 2009 at 17:29, wrote: > np.random.multinomial  looks weird. Are these bugs, or is there > something not correct with the explanation. I would like to know how you are interpreting the documentation. > Josef > > from the help/ docstring: > np.random.multinomial(20, [1/6.]*6,

[Numpy-discussion] np.random.multinomial weird results

2009-03-07 Thread josef . pktd
np.random.multinomial looks weird. Are these bugs, or is there something not correct with the explanation. Josef from the help/ docstring: >>> np.random.multinomial(20, [1/6.]*6, size=2) array([[3, 4, 3, 3, 4, 3], [2, 4, 3, 4, 0, 7]]) For the first run, we threw 3 times 1, 4 times 2, etc