News for hackers. Stuff that matters.
Re:Evolution of Random Number Generators by FabHK on Sunday May 02, 2021 @09:21AM (#27015065)
Good point. Storing a number of magnitude n! will take n log n bits, and storing n numbers up to n will also take n log n bit.

In other words, good old Fisher Yates, storing the resulting permutation, and a simple lookup is probably the way to go.

There are no comments on this comment yet.