Random numbers

The applet below is designed to allow one to generate random numbers from a range of values. Specify integer values (don't use decimal points) for the Minimum value, Maximum value and the Number of samples. Then click the Sample button to generate the random values which are displayed as a list in the text field. Each element in the list is a random sample taken with replacement from the range of specified values. Things to try with the applet:

  • Specify the minimum, maximum and number of samples to be 1, 10 and 100, respectively. Count the number of times that each of the values 1 through 10 occurs in the list. Are the counts what you would expect them to be. Repeat the experiment again. Are the counts the same as the first time?
  • Use the applet to select a random sample from a list of values.