How do you get Visual Basic to generate a random number?

[Edit]

Answer

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

r = Random(1, 100)


Improve Answer Discuss the question "How do you get Visual Basic to generate a random number?" Watch Question

First answer by Bmxdad. Last edit by Bmxdad. Contributor trust: 75 [recommend contributor]. Question popularity: 12 [recommend question]

Research your answer:

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > How do you get Visual Basic to generate a random number?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
Generate random number definition?  Generate a random number visual basic?  Find the proper use of random for visual basic 6.0?