can someone give me a formula or algorythm that will generate a random or pseudo-random number?
i've always been wondering how this is done...
This is a discussion on random number algorythms within the A Brief History of Cprogramming.com forums, part of the Community Boards category; can someone give me a formula or algorythm that will generate a random or pseudo-random number? i've always been wondering ...
can someone give me a formula or algorythm that will generate a random or pseudo-random number?
i've always been wondering how this is done...
Oh man, I saw this somewhere before. I think it's pretty basic from what I remember. It just has some simple operations with large numbers I think.
source code for this problem.
"There's always another way"
-lightatdawn (lightatdawn.cprogramming.com)
Do a search on google for the "Mersene Twister", it's supposed to be strong enough for industrial use, whatever that means.