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

Alan G Isaac aisaac at american.edu
Wed Jul 12 16:33:48 CDT 2006


On Wed, 12 Jul 2006, Sasha apparently 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. 

My only reason for not exploring this is that recent 
decisions seem to preclude it.  Specifically, nothing
from the random module remains in the numpy namespace,
I think.

Cheers,
Alan Isaac






More information about the Numpy-discussion mailing list