- Home
·
- Math/Dates
·
- Generates a random number and stores it in a variable
Generates a random number and stores it in a variable
by Techno (1 Submission)
Category: Math/Dates
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Wed 25th October 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Generates a random number and stores it in a variable
Rate Generates a random number and stores it in a variable
Dim RndMax as Long
RndMax = 100 'Max value of ValRnd
ValRnd = (int(Rnd * RndMax)+1)
msgbox "Random number: " & ValRnd 'Display the random number
Download this snippet
Add to My Saved Code
Generates a random number and stores it in a variable Comments
No comments have been posted about Generates a random number and stores it in a variable. Why not be the first to post a comment about Generates a random number and stores it in a variable.
Post your comment