Bartek
Board Regular
- Joined
- Jul 29, 2006
- Messages
- 54
Hi,
This generator is based on so-called linear congurency - the most popular method to generate random numbers. I found it in one book about casino gambling (Casino Operations Management by J.Kilby, J. Fox) and then implemented in VBA, so I don't know the exact origin of the generator.
The core principle of random number generator is the Mod operation with high prime number - in that way random generators are similar to encryption tools.
So I think this formula, or a variant thereof, will be perfect. I can see why various values were selected but what is the logic behind the value 2836 - out of curiousity, why not something higher or lower?
This generator is based on so-called linear congurency - the most popular method to generate random numbers. I found it in one book about casino gambling (Casino Operations Management by J.Kilby, J. Fox) and then implemented in VBA, so I don't know the exact origin of the generator.
The core principle of random number generator is the Mod operation with high prime number - in that way random generators are similar to encryption tools.