|
-
Jul 30th, 2002, 08:51 AM
#1
Tip- Random Numbers
A common asked question is how to produce a random number.
Well here is .NET way
Dim rnd As New System.Random()
rnd.Next(10)
rnd.Next will return a value up to 10. If you dont want max value, just remove the 10 and it will randomly choose a postitve number anywhere in the Long Data Type range.
-
Jul 30th, 2002, 04:27 PM
#2
Junior Member
Thanks! Good info. Gonna have to file it away in my "how to" section.
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
|