Guess the Number game

Guess the number randomly generated by the computer. Two variations are added: 0 to 100 and 0 to 1000.
This code works only on CodeSkulptor.
www.codeskulptor.org