[Numpy-discussion] random and RandomArray
Michiel Jan Laurens de Hoon
mdehoon at ims.u-tokyo.ac.jp
Wed Feb 16 18:44:14 EST 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.
--Michiel.
Bruce Southey wrote:
> Hi,
> 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.
>
> Regards
> 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.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
>
>
More information about the NumPy-Discussion
mailing list