On Thu, Sep 1, 2011 at 22:07, Christopher Jordan-Squire <[email protected]> wrote:

> So in the mean time, are there any suggestions for what this R sample
> function should be called, since random.sample is apparently taken?

If you default to size=1 (which you probably should anyways), then
np.random.choice() makes sense, in analogy to random.choice() from the
standard library.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to