lcg

How to use Linear congruential generator

How to use Linear congruential generator Question: I have to develop a Linear Congruential Generator with this formula Xn+1 = (aXn + b) mod m in Python. I think I understand how to generate the sequence of numbers but I don’t know how to use it, for example to simulate a dice (I need a …

Total answers: 1