QBasic Code Snippets: RANDOM Statement

CLS
INPUT "Guess my number it is between 1 and 10"; num$
RANDOMIZE TIMER
num1! = INT(RND * 10) + 1
PRINT "my number was "; num1!