Improved Random Number Generator

Category:
Dates and Math
Type:
Snippets
Difficulty:
Advanced

Author: Anonymous

Version Compatibility: Visual Basic 6

More information:
The standard Visual Basic random number generator (RND) works well (not great) but will repeat the sequence after a few million numbers. This improved routine uses nationally recognized random number data and will not repeat in your life time. The procedure is fast, but not quite as fast as the built-in function.

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

Declarations:

Code: