Quantcast
Viewing all articles
Browse latest Browse all 1508

VB6 - Fisher–Yates shuffle

Attached is a short demonstration of the Fisher–Yates shuffle. In this particular case we wanted to be able to restore the shuffle back to it's original format, so we had to ensure that the Random number generator produced predictable results depending on the key supplied. To truly randomize the shuffle, you would need to use a better random number generator.

J.A. Coutts
Attached Images
Image may be NSFW.
Clik here to view.
 
Attached Files
  • Image may be NSFW.
    Clik here to view.
    File Type: zip
    Shuffle.zip (2.2 KB)

Viewing all articles
Browse latest Browse all 1508


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>