Write a game which randomly generates a number between 0 (inclusive) and 100 (exclusive), and then prompts the user for a number: if the user guessed the number, exit; else, tells them if they should guess higher or lower.
And do it in as few characters as possible.
(Ruby impls particularly desired.)
Related posts: