What is a Random Number Generator?
A deterministic algorithm that generates numbers U1, U2, U3, …, which appear to be random (independent) numbers from U(0, 1)
What are the properties of a RNG?
What is the Linear congruential random number generator?
Then Yi+1= (aYi + c), and Ui = Yi / m
What is the Lewis-Goodman-Miller generator?
It’s a Linear Congruential RNG with values:
a = 75 (= 16807)
c = 0
m = 231 - 1 (≈ 2.14 * 109)
How to simulate random X using CDF FX(x)?
What are the advantages and disadvantages of the inverse CDF?
Pro:
Cons:
How does the Acceptance-rejection method work?
If yes, X = Y, else reject Y