▲ | brandonasuncion 5 days ago | |||||||
Reminds me of a really cool coding trick to get a "random" permutation of an array in O(1) time/memory. https://lemire.me/blog/2017/09/18/visiting-all-values-in-an-... | ||||||||
▲ | antirez 4 days ago | parent | next [-] | |||||||
Feistel networks are another way to map your index from linear sequence to a pseudorandom permutation. | ||||||||
| ||||||||
▲ | teiferer 4 days ago | parent | prev [-] | |||||||
That's neither random nor O(1). I think everybody reading the link immediately understands what you mean, but I whished this community would use its technical terminology more carefully. | ||||||||
|