Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Evolution of Random Number Generators. Parent comment
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.
In other words, good old Fisher Yates, storing the resulting permutation, and a simple lookup is probably the way to go.