Generates a random number from a user defended range and can also display the number of loops to randomly generate a desired number.