Unique Random Numbers in an Array

Category:
Lists, Collections and Arrays
Type:
Snippets
Difficulty:
Intermediate
Author:
Stanley Switaj

Version Compatibility: Visual Basic 6

More information:
Need to randomize records that have an autonumber ID, starting from 1 and on, like a vector for visual basic, it uses a collection, then picks out one randomly one at a time and places it in your unique random number array.

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

Declarations:

Code: