answersLogoWhite

0

Or you can do Rnd*232 Where 232 is a number of your choice higher or lower number. I have used this in a Timer and works well.

Valtros

------------------------------------------------------------------------------------------------------------------

Answer

Use the random function. The example below will give a random number between 1-100

r = Random(1, 100)

User Avatar

Wiki User

15y ago

Still curious? Ask our experts.

Chat with our AI personalities

SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

Add your answer:

Earn +20 pts
Q: How do you get Visual Basic to generate a random number?
Write your answer...
Submit
Still have questions?
magnify glass
imp