[Numpy-discussion] random and RandomArray
Michiel Jan Laurens de Hoon
mdehoon at ims.u-tokyo.ac.jp
Wed Feb 16 18:44:14 CST 2005
For what it's worth, I think that this is a good idea. I'd rather have
one really good random number package than two separate ones.
Bruce Southey wrote:
> I was browsing through some of the code and realized that certain random number
> generators occur in both the Python random module and RandomArray.
> The random module uses C code to get a scalar uniform random number that is
> modified in Python by other generators to get random numbers from other
> distributions. In RandomArray everything is done in the C code - obviously this
> is way faster especially for arrays.
> In the long term, would it make sense to get use the same random number
> generators in both random and RandomArray?
> By this, I am thinking along the lines that both random and RandomArray would
> call the same C code. This would require more changes in random than
> RandomArray but would minimise duplicate code and update RandomArray.
> So I was wondering what the thoughts of people on this list are on this before
> even considering this further.
> Bruce Southey
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
More information about the Numpy-discussion