3 ms·
That's a neat algorithm. You could also do part of a Fisher-Yates shuffle, if you're ok allocating the array.
by justinpombrio 8y ago
That's a neat algorithm. You could also do part of a Fisher-Yates shuffle, if you're ok allocating the array.
3 ms·