Random Shuffle Array Function

Category:
Dates and Math
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5, Visual Basic.NET

More information:
How to use : Copy & paste the code into your class. Pass any 1 dimensional array to the function, and it will shuffle the elements of the array. Example: dim arrNums(1,2,3,4,5) as integer arrNums = Shuffle(arrNums) arrNums = (3,1,5,2,4)

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: