Source: https://www.columbia.edu/~ks20/4106-18-Fall/Simulation-LCG.pdf