forms, buttons, and user-defined functions :: lottery game

Lotto Game
How old are you?

Guess a number between 1 and 10:





the task was to create a lottery game that allowed users over 16 to play but told users under 16 the game is not designed for them. the game uses the randomInt function to generate a random lottery number between 1 and 10 and a form to allow users to guess the lotto number. good simple fun.