Chapter 9 - VB.Net by Schneider
38
The Random Class
•
A random number generator declared
with the statement:
•
Dim randomNum As New Random()
•
If
m
and
n
are whole numbers and
m < n
then the following generates a whole
number between
m
and
n (including m,
but excluding n)
•
randomNum.Next(
m
,
n
)