Generates random numbers based on user input, ,and finds frequency of each number generated.