Properties for random number:
- Random pattern
- Long period
- Efficiency
- Repeatability
- Portability
3 generators
LCG
- m - modulus
- c - increment
- a - multiplier
- - seed (starting value)
- -
2 models:
- if c = 0, LCG form is called as the multiplicative LCG (known as multiplicative model)
- if a = 1, the LCG form is called as the additive LCG (known as the additive model)
- if a is not 1 and c is not 0, then its a mixed model
If change c=2
Random Variate Generator for Exponential Distribution