Generate ten uniform random numbers U(0, 1) from the multiplicative LCG given below: xi (5 xi-1 ) mod 32 with x0 = 1
Also obtain a sequence of heads and tails using above generated random numbers.
Given LCG is xi (5 xi-1 ) mod 32 with x0 = 1
x1 = 5x1-1 mod32 = 5x0 mod 32 = 5 mod 32 = 5
x2 = 5x2-1 mod32 = 5x1 mod 32 = 25 mod 32 = 25
x3 = 5x3-1 mod32 _________ _____ __________ __________ _____ _______ ______ _________.
______ ____ ______ ________ __________ __________ _____ ___.
__________ __________ _________ __________ ________.
____ _______ _________ ____ ___ ______ _______.
_________ ______ __________ ___ _______ ______ ___.
______ _________ ________ _______ _________ ___ ___ ___ ____.
________ __________ _____ ____ ______ _____ ________ ______.
_________ _____ _______ ________ ______ _________ _________ _____.
______ _________ ______ ____ __________ _______ ______ ______ ____ __________ ______ _________.
________ __________ _________ ______ ___ _______ ___ _________ __________ ________ ____.
__________ _________ _________ ___ ________.
_____ _______ _______ ___ __________ _________ ____ __________ ___.
_________ _______ _______ __________ __________ _____ _________.
__________ ___ _____ _____ _________ _____ _______ _____ _________ ________ _______.
______ ______ ____ _______ ____ ______ __________.
__________ _________ _________ ________ _________ _____ _____ ______ ________ ___.
_____ ____ _________ _______ ________ ____.
_________ _______ ______ _______ __________ _______ __________ __________ ___.
_______ _________ __________ _____ ______ _________ _______ ______.
___ __________ ________ ____ ________ _____.
______ __________ ________ ________ __________.
____ ________ _________ _____ ____ ______ ________.
__________ _______ _____ ____ ______ ______ ___ ______ ______.
_____ __________ ____ _____ ___ _____ _____ ___.
____ __________ __________ ______ _____ __________ ________ ___ _____ _________ ______ __________.
______ __________ _______.
Get Full Answer on WhatsApp