8 ms·
Sure, the repository is open source (linked from the front page). The selection did not get much thought at all, just a Rust rand shuffle over all ids performe
by dginev 1y ago
Sure, the repository is open source (linked from the front page).
The selection did not get much thought at all, just a Rust rand shuffle over all ids performed at first page visit and then cached:
https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#tymethod.shuffle https://docs.rs/rand/latest/rand/seq/trait.SliceRandom.html#...
I had all IDs already computed for the previous/next article navigation feature, so it seemed fun to reuse them.