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 in news, fun, personal