|
-
Nov 1st, 2010, 11:19 AM
#20
Re: Tutorial - Random Numbers [VB6 and earlier]
You need to use the Randomize statement as shown in post #2.
If you want different numbers each time, call Randomize just once at the start of your program (eg: in Form_Load).
If you want to be able to repeat the same set of numbers, call Rnd with a negative argument first, and then Randomize with whatever number you want, eg:
Code:
Rnd -1
Randomize 2345
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|