Stat Trek Teach yourself statistics Contact Us   |   Tell a Friend   |   Newsletter
 
  Tutorials  
  AP Statistics  
  Stat Tables  
  Stat Tools  
  Calculators  
  Books  
  Help  
   
   




Random Number Generator

Use the Random Number Generator to create a list of random numbers, based on your specifications. For help in using the Random Number Generator, read the Frequently-Asked Questions or review the Sample Problems.

The numbers generated can be found in the Random Number Table.


  • Enter a value in each of the first three text boxes.
  • Indicate whether duplicate entries are allowed in the table.
  • Click the Calculate button to create a table of random numbers.

Note: The seed value is optional. Leave it blank to generate a new set
of numbers. Use it to repeat a previously-generated set of numbers.

How many random numbers?
Minimum value
Maximum value
Allow duplicate entries
Seed (optional)


Random Number Table



100 Random Numbers*
62153 99942 60017 06351 40791 90588 41195 62817 51067 86316 54013 97806 66426 87125 98470 90993 13424 46131 74566 89261 92061 10219 55744 45727 02338 05947 68562 80716 17696 33314 13019 73903 64694 65762 62558 72171 43331 56408 70294 02079 53608 52136 83111 63626 68967 52945 01011 56813 15964 11951 77107 55081 94602 76039 58285 84989 04879 71766 71103 46536 46795 99133 15560 39722 93793 31582 91656 37991 72430 95670 72835 67898 56149 91397 85652 29446 98065 18764 30109 22632 45063 77771 79648 20901 23700 41859 87384 50808 07419 37586 00202 12355 49336 64953 44659 05542 96333 97402 94197 03810

* This table of 100 random numbers was produced according to the following specifications: Numbers were randomly selected from within the range of 0 to 99999. Duplicate numbers were allowed.



Frequently-Asked Questions


Instructions: To find the answer to a frequently-asked question, simply click on the question.




What are random numbers?

Random numbers are sets of digits (i.e., 0, 1, 2, 3, 4, 5, 6, 7, 8, 9) arranged in random order. Because they are randomly ordered, no individual digit can be predicted from knowledge of any other digit or group of digits.

What is a random number generator?

A random number generator is a process that produces random numbers. Any random process (e.g., a flip of a coin or the toss of a die) can be used to generate random numbers. Stat Trek's Random Number Generator uses a statistical algorithm to produce random numbers.

What is a random number table?

A random number table is a listing of random numbers. Stat Trek's Random Number Generator produces a listing of random numbers, based on the following User specifications:

  • The quantity of random numbers desired.
  • The maximum and minimum values of random numbers in the table.
  • Whether or not duplicate random numbers are permitted.

How "random" is Stat Trek's Random Number Generator?

Although no computer algorithm can produce numbers that are truly random, Stat Trek's Random Number Generator produces numbers that are nearly random. Stat Trek's Random Number Generator can be used for most statistical applications (like randomly assigning subjects to treatments in a statistical experiment). However, it should not be used to generate numbers for cryptography.

How can I control the number of entries in a single random number table?

The value entered in the text box labeled "How many random numbers" controls the quantity of numbers generated for the random number table. Stat Trek's Random Number Generator can create up to 1000 random numbers for a single random number table. If more random numbers are needed, Users can create additional tables.

What are the minimum and maximum values in the Random Number Generator?

The minimum and maximum values set limits on the range of values that might appear in a random number table. The minimum value identifies the smallest number in the range; and the maximum value identifies the largest number. For example, if we set the minimum value equal to 12 and the maximum value equal to 30, the Random Number Generator will produce a table consisting of random arrangements of the numbers in the range of 12 to 30.

What does it mean to allow duplicate entries in a random number table?

Stat Trek's Random Number Generator allows Users to permit or prevent the same number from appearing more than once in the random number table. To permit duplicate entries, set the drop-down box labeled "Allow duplicate entries" equal to True. To prevent duplicate entries, change the setting to False.


Essentially, allowing duplicate entries amounts to sampling with replacement; preventing duplicate entries amounts to sampling without replacement.

What is a seed?

The seed is a number that controls whether the Random Number Generator produces a new set of random numbers or repeats a particular sequence of random numbers. If the text box labeled "Seed" is blank, the Random Number Generator will produce a different set of random numbers each time a random number table is created. On the other hand, if a number is entered in the "Seed" text box, the Random Number Generator will produce a set of random numbers based on the value of the Seed. Each time a random number table is created, the Random Number Generator will produce the same set of random numbers, until the Seed value is changed.


Note: The ability of the seed to repeat a random sequence of numbers assumes that other User specifications (i.e., quantity of random numbers, minimum value, maximum value, whether duplicate values are permitted) are constant across replications. The use of a seed is illustrated in Sample Problem 1.


Warning: The seed capability is provided for Users as a short-term convenience. However, it is not a long-term solution. From time to time, Stat Trek changes the underlying random number algorithm, to more closely approximate true randomization. A newer algorithm will not reproduce random numbers generated by an older algorithm, even with the same seed. Therefore, the safest way to "save" a random number table is to print it out.


Using the Random Number Generator: Sample Problems


  1. A university is testing the effectiveness of two different medications. They have 10 volunteers. To conduct the study, researchers randomly assign a number from 1 to 2 to each volunteer. Volunteers who are assigned number 1 get Treatment 1 and volunteers who are assigned number 2 get Treatment 2. To implement this strategy, they input the following settings in the Random Number Generator:

    • They want to assign a number randomly to each of 10 volunteers, so they need 10 entries in the random number table. Therefore, the researchers enter 10 in the text box labeled "How many random numbers?".
    • Since each volunteer will receive one of two treatments, they set the minimum value equal to 1; and the maximum value equal to 2.
    • Since some volunteers will receive the same treatment, the researchers allow duplicate random numbers in the random number table. Therefore, they set the "Allow duplicate entries" dropdown box equal to "True".
    • And finally, they set the Seed value equal to 345. (The number 345 is not special. They could have used any positive integer.)

    Then, they hit the Calculate button. The Random Number Generator produces a Random Number Table consisting of 10 entries, where each entry is the number 1 or 2. The researchers assign the first entry to volunteer number 1, the second entry to volunteer number 2, and so on.

    Using this strategy, what treatment did the first volunteer receive? What treatment did the tenth volunteer receive?

    Solution:

    This problem can be solved by recreating the exact Random Number Table used by the researchers. By inputting all of the same entries (especially the same Seed value) that were used originally, we can recreate the Random Number Table used by the researchers. Therefore, we do the following:

    • Enter 10 in the text box labeled "How many random numbers?".
    • Set the minimum value equal to 1 and the maximum value equal to 2.
    • Set the "Allow duplicate entries" dropdown box equal to "True".
    • Set the Seed value equal to 345.

    Then, we hit the Calculate button. This produces the Random Number Table shown below.

    Random Numbers
    2 2 1 1 2 2 2 1 2 1

    From the table, we can see that the first entry is "2". Therefore, the first volunteer received Treatment 2. And the tenth entry is "1". Hence, the tenth volunteer received Treatment 1.

  2. We would like to survey 500 families from a population of 20,000 families. Each family has been assigned a number from 1 to 20,000. How can we randomly select 500 families for the survey?

    Solution:

    We input the following settings in the Random Number Generator:

    • We want to select 500 families. Therefore, we enter 500 in the text box labeled "How many random numbers?".
    • Since each family has been assigned a number from 1 to 20,000, we set the minimum value equal to 1; and the maximum value equal to 20,000.
    • Since we only want to survey each family once, we don't want duplicate random numbers in our random number table. Therefore, we set the "Allow duplicate entries" dropdown box equal to "False".

    Then, we hit the Calculate button. The Random Number Generator produces a Random Number Table consisting of 500 unique random numbers between 1 and 20,000. We will survey the families represented by these numbers - a sample of 500 families randomly selected from the population of 20,000 families.
Statistics (Cliffs Quick Review)
David H. Voelker, Peter Z. Orton, Scott Adams
List Price: $9.99
Buy Used: $1.31
Buy New: $9.99

Fifty Challenging Problems in Probability with Solutions
Frederick Mosteller
List Price: $6.95
Buy Used: $2.62
Buy New: $6.95

Schaum's Outline of Probability, Random Variables, and Random Processes
Hwei Hsu
List Price: $19.95
Buy Used: $7.98
Buy New: $10.94

Advanced Excel for Scientific Data Analysis
Robert De Levie
List Price: $59.50
Buy Used: $35.21
Buy New: $40.15

Statistics in a Nutshell: A Desktop Quick Reference (In a Nutshell (O'Reilly))
Sarah Boslaugh, Paul Andrew Watters
List Price: $34.99
Buy Used: $14.29
Buy New: $23.09


Introduction to Probability, 2nd Edition
Dimitri P. Bertsekas, John N. Tsitsiklis
List Price: $86.00
Buy Used: $58.48
Buy New: $69.66

Statistics, 4th Edition
David Freedman, Robert Pisani, Roger Purves
Buy Used: $64.98
Buy New: $107.63

Advanced Excel for Scientific Data Analysis
Robert De Levie
List Price: $59.50
Buy Used: $35.21
Buy New: $40.15

Statistics Workbook For Dummies
Deborah Rumsey
List Price: $16.99
Buy Used: $7.00
Buy New: $11.55

Cartoon Guide to Statistics
Larry Gonick, Woollcott Smith
List Price: $17.99
Buy Used: $5.93
Buy New: $12.52

Understandable Statistics
Charles Henry Brase, Corrinne Pellillo Brase
List Price: $176.95
Buy Used: $89.74
Buy New: $132.39





Site Information

About Us       Site Map       Privacy Policy       Terms of Use       Resources       Advertising   
The contents of this webpage are copyright © 2009 StatTrek.com. All Rights Reserved.