Sheerpower Logo N.1  A simple Guessing Game
This guessing game uses the following Sheerpower features:
  • Random number Generation
  • Conditions
  • printed output
The RND() funtion generates a random number between 1 and whatever number you pass to it. For example to generate a number between 1 and 100 and storing the number into the variable target and printing its value:
target = rnd(100) print target
The code below generates a random number between 1 and 5. Put into X your guess and then click on RUN. A new random number will be generated each time.
Hide Description

    

       


      

Enter or modify the code below, and then click on RUN

Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use.
Wide screen