Random Object/Data Generator
Category:
Lists, Collections and ArraysType:
ApplicationsDifficulty:
IntermediateAuthor:
EthanVersion Compatibility: Visual Basic 6
More information:
Though the technique used in this example as a random number generator the code with little modification can be used for a variety of purposes:
- Random object generator (pictures for games puzzles, cards etc)
- Random name generator (Picking names for exchanging gifts)
- Random file selector (graphic files in a directory for screensaver slide show)
- Random number generator (Lotto numbers)
The code also illustrates numerous other useful techniques, which are documented in the comments.
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 rndmobjs.zip