3 ms·
> * IDs are returned in sorted order This is key. The author does not explain this well, or at all. If you require the IDs in sorted order, you need this algor
by tripzilch 7y ago
> * IDs are returned in sorted order
This is key. The author does not explain this well, or at all. If you require the IDs in sorted order, you need this algorithm.
If you don't mind or want them shuffled, use a permutation function.
(the idea of shuffling afterwards is nonsense, if you could do that, you can also check for duplicates when drawing)