Non-Repeating Random Numbers or Data using Arrays

Category:
Lists, Collections and Arrays
Type:
Modules
Difficulty:
Intermediate
Author:
Ethan

Version Compatibility: Visual Basic 6

More information:
This Code Shows how to:

  • Use Arrays to help select nonrepeating random data
  • Dynamically Display items on a line
The range of data does not have to be in any specific order. The random pick is made based on element numbers of the array. It then uses the method shown in code at http://www.freevbcode.com/ShowCode.Asp?ID=1123 to remove the selected element and continues on until all items have been selected.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download rndarydt.zip