Shuffle Array Elements Randomly

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
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.

Declarations:

Code: