Question
Using the linear congruential random number generator determine the first five random numbers given that: ,
,
, and
. Transform these random numbers to lie between 0 and
Answer :
Word Count : 317
______ __________ _____ _____ _____ _____ ________ ________ ________.
_____ _______ ________ _________ ______ ___ ______ ______ _____ _________ _______.
__________ _____ __________ ______ _______ _________ _____ _________ ____ ______.
___ _____ ____ ______ ___ _____ ________ ____.
_________ __________ _______ ______ __________.
___ ___ ____ ____ ____ _____ _____ ___ _______ _________ ______.
_____ ____ ___ ________ ________.
____ ___ _____ ______ _______ ________ ______.
__________ ___ ______ _______ _______ ______ __________ ______.
__________ ______ _________ _____ ______ ______ _________ ______ _______ ________ _____ ________.
_______ ______ ____ __________ _________ _____ ___ ___ __________ ____.
__________ ______ _______ ___ ________ ________ ________ ________ ______ _________ _____.
_________ _____ ________ ________ ____ _______ _______ ______ ________ __________.
__________ ____ _______ _____ ____ ____ ________ ________.
______ __________ _______ ____ __________ ______ ________ __________.
_________ ______ _________ ___ _______ ______ ____ ____ __________.
____ ___ ________ ____ ____ _______ ______ ___ ________ ______ __________ _______.
________ _____ ___ _____ ______ _________ _________ ________ _________ _____ _______ ___.
__________ ______ _________ _______ ______ ________ _______ _____ ________ ________.
_________ ___ ___ ___ __________ __________.
_________ ________ ________ ___ ____ __________ ________ _____ ____ ________.
Skip in 10
The linear congruential generator (LCG) is defined by the formula: [ x_{n+1} = (a x_n + c) \mod m ] Given: [ x_0 = 27, \quad a = 17, \quad c = 43, \quad m = 100 ] Step 1: Calculate (x_1) [ x_1 = (17 \cdot 27 + 43) \mod 100 ] [ 17 \cdot 27 = 459 ] [ 459 + 43 = 502 ] [ 502 \mod 100 = 2 ] [ x_1 = 2 ] Step 2: Calculate (x_2) [ x_2 = (17 \cdot 2 + 43) \mod 100 ] [ 17 \cdot 2 = 34 ] [ 34 + 43 = 77 ] [ 77 \mod 100 = 77
___ ______ __________ _____ ____ ______ _______ __________ _________ _________ ________.______ __________ _____ _____ _____ _____ ________ ________ ________.
_____ _______ ________ _________ ______ ___ ______ ______ _____ _________ _______.
__________ _____ __________ ______ _______ _________ _____ _________ ____ ______.
___ _____ ____ ______ ___ _____ ________ ____.
_________ __________ _______ ______ __________.
___ ___ ____ ____ ____ _____ _____ ___ _______ _________ ______.
_____ ____ ___ ________ ________.
____ ___ _____ ______ _______ ________ ______.
__________ ___ ______ _______ _______ ______ __________ ______.
__________ ______ _________ _____ ______ ______ _________ ______ _______ ________ _____ ________.
_______ ______ ____ __________ _________ _____ ___ ___ __________ ____.
__________ ______ _______ ___ ________ ________ ________ ________ ______ _________ _____.
_________ _____ ________ ________ ____ _______ _______ ______ ________ __________.
__________ ____ _______ _____ ____ ____ ________ ________.
______ __________ _______ ____ __________ ______ ________ __________.
_________ ______ _________ ___ _______ ______ ____ ____ __________.
____ ___ ________ ____ ____ _______ ______ ___ ________ ______ __________ _______.
________ _____ ___ _____ ______ _________ _________ ________ _________ _____ _______ ___.
__________ ______ _________ _______ ______ ________ _______ _____ ________ ________.
_________ ___ ___ ___ __________ __________.
_________ ________ ________ ___ ____ __________ ________ _____ ____ ________.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.