Study the RandomNumber. Frm code and its output first. Use your answers that you put on paper from the assignment. After you are finished, read the corrections and the explanations that go with them. Even if you got all the answers correct, please read the explanations that are provided below the problem. If you did not get 100%, click on Try Again at the bottom. Correct your paper answers as well.
Yes
No
The output is the same because I did it correctly.
The output is different because the numbers are random.
Dim LessOne As Single
Randomize
LessOne = Rnd
LblLessOne = LessOne
Dim LessTen As Single
Randomize
LessTen = 10 * Rnd
LblLessTen = LessTen
Dim UpTo5 As Integer
Randomize
UpTo5 = 5 * Rnd
LblUpTo5 = UpTo5
Dim UpTo100 As Integer
Randomize
UpTo100 = 100 * Rnd
LblUpTo100 = UpTo100
Dim UpTo100 As Integer
Randomize
UpTo100 = 100 * Rnd
LblUpTo100 = UpTo100
Randomize
Rnd
LessOne
Random
Integers
Decimals (Single)
0
1
2
10
A random decimal number less than 10 such as 2.3482 or 9.3627
A random integer less than 10 such as 2 or 9
A random decimal number between 0 and 1 such as .23 or .93
A random integer as small or big as the computer will allow
A random decimal less than 5
A random decimal from 0 to 5
A random integer from 0 to 5
A random integer from 0 to 5000
300
.3
3.3
33
13
UpTo33 = Rnd
UpTo33 = 33 * Rnd
UpTo33 = 10 * Rnd
UpTo33 = Rnd + 13
True
False
UpToTop = 10 * Rnd
UpToTop = Top * Rnd
UpToX = Top * Rnd
UpToHigh = Top * Rnd
UpToX = X * Rnd