Rnd and Randomize Demo

Dates and Math

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Demonstrates how Rnd and Randomize should be used. Many new folk to VB are under the impression that by placing Randomize in the form load event their app will randomize whatever they are trying to randomize.

To make the demo a bit more interesting, I've included a demo how to add and load an array of command buttons in a grid format at run time and ended up making a silly "guess where it is" game using a simple scoring method.

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 rndrandomizedemo.zip