Quantcast
Viewing all articles
Browse latest Browse all 3

Random numbers

Simply generate a random value with the Random class and then store the return of a call to Next() in your variable ala:

      Dim x as Integer
      Dim rand as New Random

      x = rand.Next(5, 10)

In this case we are generating a random number between 5 and 10 and storing the result in x.

Is this what you are looking for?


Viewing all articles
Browse latest Browse all 3

Trending Articles