|random number -->|
One of the simplest algorithms is
x[i+1] = (a * x[i] + c) mod m
but this repeats after at most m numbers and successive numbers are closely related. Better algorithms generally use more previous numbers to calculate the next number.
(01 Jan 2007)
|Bookmark with:||word visualiser||Go and visit our forums|