numpy/numpy — pull request #2727 by seberg (2012-11-13 00:56:10+00:00)
Title: Fixes for np.random.choice

As mentioned on the mailinglist this changes the default for the `size` argument to `None` and allows tuples as well, just as other random functions do. This part would need to be in the 1.7. released to avoid changing it lateron.

The second commit fixes a bug that I noticed while doing the first thing. I know that tests are missing (and if someone feels like adding them please do so), but I think it would be better to raise an Exception then to keep the current behaviour (unless I am seeing things wrong). However `np.unique` returns `new` sorted, but it must be kept exactly in the original order as far as I can see.

It does not adress a possible `axis` argument (see also #2724) as it should not matter for 1.7.