Guess+My+Number

Specification
Write a program which selects a random number between 1 and 3. The user must then try and guess the random number. An appropriate message should be displayed to say whether the guess was correct or incorrect.

This program introduces the concept of random numbers. Scratch can pick a random number between any 2 numbers using the //**pick random**// function: This example picks a random number between 1 and 10.

Design
Inputs: Guess Process: Calculate a random number and compare it with the users guess Outputs: Message

The user's guess: //**Guess**// The randomly generated number: //**RandomNumber**//
 * Variables**


 * Algorithm**
 * 1. Select a random number between 1 and 3**

2.1 Ask user to enter a number between 1 and 3 2.2 Set guess variable to the answer
 * 2. Get user's guess**

3.1 If guess = random number then 3.2 Display "Correct" message 3.3 Else 3.4 Display "Wrong" message 3.5 End If
 * 3. Test if guess is correct and display message**

Testing
Test the program

Extension
Add a correct and incorrect variable to keep track of the number of correct and incorrect guesses