[Numpy-discussion] Putting some random back into the top-level?
Mon Mar 12 14:29:31 CDT 2007
I, for one, would also like this. Perhaps it should not be called
'rand', however, as that conflicts with the pylab rand. (numpy load
and pylab load also conflict -- probably the only reason I ever use
import pylab as pl in my scripts). 'random' is already taken by the
whole package... What does this leave that is still sensible?
On Mar 9, 2007, at 2:01 PM, Bill Baxter wrote:
> Has enough time passed with no top level random function that we can
> now put one back in?
> If I recall, the former top level rand() was basically removed because
> it didn't adhere to the "shapes are always tuples" convention.
> Has enough time passed now that we can put something like it back in
> the top level, in tuple-taking form?
> I think this is a function people use pretty frequently when writing
> quick tests.
> And numpy.random.random_sample seems a rather long and not so obvious
> name for something that is used relatively frequently.
> Numpy-discussion mailing list
Rob Hetland, Associate Professor
Dept. of Oceanography, Texas A&M University
phone: 979-458-0096, fax: 979-845-6331
More information about the Numpy-discussion