in reply to Re^7: How to generate different random numbers?
in thread How to generate distinct random numbers?
Unless you enumerate all of the permutations of the set, I don't know how this could possibly work.That's exactly what I'm doing; there is no need to limit yourself to individually selected numbers. If you treat each shuffled set as a random selection from the set of all possible shuffles, then you have a perfectly good random number, equivalent to a randomly selected integer from 1 to N!. If you do M shuffles, you can select random numbers from a set of size N! ^ M. It doesn't take a very large N and/or M to reach the cardinality needed from cryptographic applications.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: How to generate different random numbers?
by thor (Priest) on Sep 08, 2004 at 22:01 UTC | |
by Pragma (Scribe) on Sep 08, 2004 at 22:14 UTC |