[Numpy-discussion] Args for rand and randn: call for a vote

Robert Kern robert.kern at gmail.com
Wed Jul 12 18:16:47 CDT 2006

Sasha wrote:
> Let me repeat my suggestion that was lost in this long thread:
> Add rands(shape, dtype=float, min=default_min(dtype), max=default_max(dtype))
> to the top level. Suitable defaults can be discussed.  A more flexible
> variation could
> be rands(shape, dtype=float, algorithm=default_algorithm(dtype)), but
> that would probably be an overkill.
> I think this will help teaching: rands is similar to zeros and ones,
> but with few bells and whistles to be covered in the graduate course.

Well, write it up, stick it as a method in RandomState, and when we can play 
with it, we can discuss whether it should go into numpy.*.

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

More information about the Numpy-discussion mailing list