|
random number facilities in numarray and main Python libs: msg#00028python.numeric.general
Dear People, I recently encountered a strange problem when writing some Python using random number code. I tried setting the seed at top level, but I was still get random results. I submitted a bug report, and had my error explained to me. I had run into this problem several times, and I think some mental block had prevented me from seeing the source of the problem. Part of the reason is that I had previously been using R, and everyone uses the same random number generator facilities. Are the random number facilities provided by numarray.random_array superior to those provided to those provided by the random module in the Python library? They certainly seem more extensive, and I like the interface better. If so, why not replace the random module by the equivalent functionality from numarray.random_array, and have everyone use the same random number generator? Or is this impossible for practical reasons? By the way, what is the name of the pseudo-random number generator being used? I see that the code is in Packages/RandomArray2/Src, but could not see where the name of the generator is mentioned. Faheem. ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: extracting a random subset of a vector: 00028, Jp Calderone |
|---|---|
| Next by Date: | Re: random number facilities in numarray and main Python libs: 00028, Robert Kern |
| Previous by Thread: | Compare strings.array with None.i: 00028, Shin |
| Next by Thread: | Re: random number facilities in numarray and main Python libs: 00028, Robert Kern |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |