Skip to main content.
December 8th, 2006

updated lcgp class header

If you’re in the market for a pseudo-random number generator (prng) for your C++ development activities, I have just updated my linear congruential generator with perturbations (lcgp) class header. There is now a flag to account for adjusting the range of returned random numbers from 0..(modulus-1) to 1..modulus. The header is available here: lcgp.h.

And yes, I think this is fun.

Posted by wmyers as news, fun, personal at 11:44 AM EST

No Comments »