Say you want to create two very simple, console-based JavaScript apps: a game that challenges players to guess a number between 1 and 10 and a quiz that displays a random question from its bank of questions. Both apps need to be able to generate a random whole number between two limits.
Full article