blog.ruofeidu.com
Fisher-Yates Shuffle - Fusing Data and AI into VR
The correct way to do a shuffle is to choose a random other index to fill in the current index, which is uniform: [crayon-5df09745cb275589626554/] Also, you may need a uniform random generator in C++: [crayon-5df09745cb28a300532982/] Related