in reply to Predict Random Numbers
Looks very interesting; I'll probably play with it a little when I get home.
OTOH, it looked a lot more intersting before I read the code. I was wondering, how do you determinte the a, b, n, and m? Is it possible to write an algo to determinte them for an unknown RNG? Given only M (which seems to be 1<<number of bits of output)? Given nothing? Using srand()? Without changing the seed?
Update:Changed "N" to "M" in "given only N".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Predict Random Numbers
by no_slogan (Deacon) on Mar 14, 2002 at 18:06 UTC |