Random number generation is tricky business. Good random number
generation algorithms are tricky to invent. Code implementing
the algorithms is tricky to test. And code using random number
generators is tricky to test. This article will describe
SimpleRNG, a very simple random number generator. The generator
uses a well-tested algorithm and is quite efficient. Because it
is so simple, it is easy to drop into projects and easy to debug
into. SimpleRNG can be used to generate random unsigned integers
and double values with several statistical distributions: - Chi
square - Inverse gamma - Laplace (double exponential) - Student
t Why Not Just Use the .NET Random Number Generator? For many
applications, it hardly matters what random number generator you
use, and the one included in the .NET runtime would be the most
convenient. However, sometimes it helps to have your own random
number generator. Here are some examples. - When debugging, it's
convenient to have full access to the random number generator.
You may w