While computers can't really make random numbers, they can make lists of numbers that are fairly unpredictable. We will look at how to use VB to get random numbers that fall in a range that we want.
Dim intRandomNum as Integer
Dim randomGenerator as new Random
ex. intRandomNum = randomGenerator.next(1, 11)
intRandom
lblRoll.text = intRandomNum
Make a program that allows a user to click on a button that says "Roll Die". When the user clicks on the button, generate a random number in the range of 1 - 6 and display it in a Label and a Picture of the face of a die with that number.
Make a program with a Button that can't be clicked. Each time you move your mouse to this Button, it should 'jump' somewhere else.
Change the Location property to a new point:
btnDone.Location = New Point(intX, intY)