RMT Unit 5 Cont...
RMT Unit 5 Cont...
th
where a, b, mare constants and r, and r- are the th and (i+1)" random
numbers. This formula can be expressed as follows. Choose two positive numbers
a and b. Let r be a random number chosen initially. r, is called the randoni
number seed. Multiply r, by a and add bto this and then divide by m. Callthe
remainder by r . Then . is called the nd random number. Repeat this
process to get the successive random numbers. If b0, this procedure of
generating random numbets is called mixed generato.
Ifb=0, the procedureis called multiplication congruential generator. Ifa=1,
the procedure is called additive congruential generator. Let us considerexamples
of generating random numbers by the
above methods.