[A83] Re: [OT] Random


[Prev][Next][Index][Thread]

[A83] Re: [OT] Random




Montana Rowe wrote:

>this isn't for a calc, but i was wondering if anyone had a really good
>randomalgo 
>  
>

What do you need it for?
And. the usual crap:
Make sure you really use the one you have in a good way, before going 
looking for a "better random algoritm".
Most people mess up the seeding of the random routine, makeing the 
result bad, no matter how good the routine is.

But...
In many cases, the standard routines actually isn't any good, so if you 
need a real heavy duty random routine
(that is actually quite fast too) take a look at the Mersenne Twister here:
http://www.math.keio.ac.jp/~matumoto/emt.html

Its no good for a calc since it uses 1K of memory or so, but that is 
nothing for a real computer.
You said it wasn't for a calc, so I guess it could be interesting.

///Olle




Follow-Ups: References: