3 ms·
Related: https://stackoverflow.com/questions/10054732 https://stackoverflow.com/questions/10054732 Fundamentally you want to make a random permutation, but not
by thomasahle 9y ago
Related: https://stackoverflow.com/questions/10054732 https://stackoverflow.com/questions/10054732
Fundamentally you want to make a random permutation, but not spend linear memory on it, as you would if you did it by shuffling.
- nemo1618 9y agoI did something like this in Go: https://godoc.org/github.com/lukechampine/randmap/perm https://godoc.org/github.com/lukechampine/randmap/perm