support for linear congruential random number generation