06 May 2006 07:30
06 May 2006 07:15
Random Number Generation
by acarranca & 1 otherHave you ever used rand() or Math.Random() or System.Random or java.util.Random? You could do a lot better. Did you know that these use one of the slowest and least random algorithms available? In this article, I provide C/C++, Java, and C# implementations of two fast, high-quality random number generators, the Mersenne Twister and R250/521
1
(2 marks)