Shuffle Array Elements Randomly
Category:Lists, Collections and Arrays
Version Compatibility: Visual Basic 6, Visual Basic 5
I wrote this to shuffle an array of 10 integers to be used in a 10 X 10 Squares Pool often like those used for Pro Football Pools. Could easily be modified for simulating a dice roll or generating Lotto Numbers Etc. By dimensioning the array as a String it could be used to generate scrambled words for word scramble games.
Instructions: Copy the declarations and code below and paste directly into your VB project.