Generation of Random Numbers
Introduction:
The word random is used quite commonly in our daily life. One may or may not know its meaning but whenever it is used, it conveys the sense for which it is used. An apple may be picked up from a shop at random. The customers enter a shop not according to some preplan; they enter the shop in a random manner. The vehicles cross a zebra crossing in a random manner. The teacher does not check the note books of all students, he checks some of the note books selected at random. Somebody is intelligent by birth, somebody is healthy by birth, somebody has a slip on the road, somebody meets an accident on the road, and somebody gets an attack of influenza. There is something random about all this. When a coin or a die is tossed so that it can fall any face freely, it is a random fall. Many situations in practical life are of random nature. Their ultimate results are based on chance. A small boy is familiar with the classical idea of “lottery method”, which is centuries old and has been used for the selection of a random sample. Nobody has so far discovered a better method of selecting a sample from the population. Most modern methods of selecting a sample are based on the theory of random selection by lottery. The random sample is the basis of the statistical inference. Thus randomness is the central idea of the study which is carried out to know something about unknown situations.
Generation of Random Numbers:
In our counting system, there are ten basic digits which are used for counting purposes. These digits are 0, 1, 2 ... 9. We can make integers of any size with the help of these digits. The figure 53792 is made up of five digits 2, 3, 5, 7 and 9. We shall use these digits to make a set of numbers called table of random numbers. Suppose we select ten paper slips and on each slip we write a different digit. Thus each slip represents a digit. We select any one of these slips at random and note down its digit on a paper. We return the slip to the main lot and select a slip again. The digit on the second slip is also noted along with the first digit (row – wise) or below the first digit (column – wise). We continue this process of selecting, recording and replacing each selected slip. On each selection the probability of selection of each digit is 1/10. Thus each digit has equal probability of selection. We get a set of digits called random digits. If the first digit is 5, second is 7, third is 5 and fourth is 0, we can write them in a row as 5750 or 57 50. We can also write in a column as below:
When the first row or column is completed, we can write the selected digits in the second row or second column. In this manner a table of any size spread over a number of pages can be obtained. This is called table of random numbers. One small table of random numbers is given below:
5 1 |
2 2 |
0 9 |
1 2 |
7 2 |
1 2 |
4 0 |
9 2 |
7 2 |
4 5 |
3 5 |
5 0 |
2 3 |
3 9 |
7 4 |
4 4 |
5 7 |
1 8 |
7 3 |
3 1 |
1 1 |
7 5 |
8 8 |
7 5 |
9 2 |
6 9 |
4 6 |
7 5 |
5 6 |
8 2 |
7 7 |
6 6 |
3 8 |
3 2 |
1 2 |
9 3 |
9 5 |
6 8 |
8 4 |
8 7 |
9 5 |
7 1 |
8 0 |
3 6 |
8 2 |
1 6 |
4 8 |
3 8 |
This table is written with two digits in two columns together. This is one way of writing the digits. One can write 3 – digit or 4 – digit columns. Anybody can make a table of random numbers. A good table of random numbers contains 0, 1, 2 ... 9 almost equal numbers of times. The students shall learn in higher classes that the random numbers can be made for each probability distribution. The random numbers under discussion, infect are the random numbers from a discrete uniform distribution over the interval (0, 9).