From: Robert K. <rob...@gm...> - 2006-07-12 23:16:55
|
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 |