15 1022q Making Random Numbers s2018
15 1022q Making Random Numbers s2018
• Later you run the program 2nd time you run it:
the second time it will ask
the same question again!
• That means any game which uses the random numbers
will be the same every time you play it
• To change this, you need to use Randomize
Simple Math Test 1/2
' Randomize the random number generated by Rnd
Randomize You need to use Randomize to ensure that the
numbers generated are really random every time
' Create the first number in the range 1 to 100
Number1 = Int(Rnd() * 100) + 1