4.1.1.8 Random number generations

Random number generation

Be familiar with, and be able to use, random number generation.

2 Numbers

Have a go

Write a program that picks a random number from 1-100. Give the user a chance to guess it. If they get it right, tell them so. If their guess is higher than the number, say "Too high." If their guess is lower than the number, say "Too low."  Then quit.