Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Q2. RANDOM NUMBER GENERATION (a) Using the lincar congruential method, generate a sequence of 10 random numbers using the following settings: A-29, e-67,m-511 and

image text in transcribed

Q2. RANDOM NUMBER GENERATION (a) Using the lincar congruential method, generate a sequence of 10 random numbers using the following settings: A-29, e-67,m-511 and initial seed Xo-79 Show the equation used. (At least 3 digits after decimal point) (5 points). Xo: 79 No. X R A % 1 C 314 0.615 X, (29.79 + 67) mod 511 2 986 0.951 3 364 0-712 = 2351 mod 5" 9173=17.9 8657 2358461 511 2044 45 403 0.789 5 0.002 6 96 0.183 7 296 6.579 8 475 0.930 9 14161 45 0.088 27 10 1067311754 46 1372 350 0.685 2651 8651 13872 7 (b) Using the random numbers from the part (a), compute the random numbers that follow the exponential distribution with rate 2-10 per hour. Show the equation used. (At least 3 digits after decimal point) (5 points). Yi = -1 hn (1-R) No. 1 0-615 0.095 6. 1931 0.712 0.302 0-724 23456 0.789 0.156 988 0.0002 0-188 0.071

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

An Introduction to Analysis

Authors: William R. Wade

4th edition

132296381, 978-0132296380

More Books

Students explore these related Mathematics questions