Cheap and cheerful rand() replacement.
Posted
by Mick
on Stack Overflow
See other posts from Stack Overflow
or by Mick
Published on 2010-06-16T10:09:23Z
Indexed on
2010/06/16
10:12 UTC
Read the original article
Hit count: 172
c
After profiling a large game playing program, I have found that the library function rand() is consuming a considerable fraction of the total processing time. My requirements for the random number generator are not very onerous - its not important that it pass a great battery of statistical tests of pure randomness. I just want something cheap and cheerful that is very fast. Any suggestions?
© Stack Overflow or respective owner