In many programming languages you can generate a random number between 1 and a limiting value named LIMIT by using a statement similar to random Number = random(LIMIT). Create a lottery game application. Generate three random numbers, each between 0 and 9. Allow the user to guess three
numbers. Compare each of the user's guesses to the three random numbers and display a message that includes the user's guess, the randomly determined three-digit number, and the amount of money the user has won as shown in the accompanying table.
Make certain that your application accommodates repeating digits. For example, if a user guesses 1, 2, and 3, and the randomly generated digits are 1, 1, and 1, do not give the user credit for three correct guesses-just one.