Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

everyone just wants to copy a wrong answer that was posted everytime some asks this question. please help on this. Surely someone on chegg knows

everyone just wants to copy a wrong answer that was posted everytime some asks this question. please help on this. Surely someone on chegg knows how to do this correctly. image text in transcribed

some code to help answer question

image text in transcribed

image text in transcribed

my random number generator below:

image text in transcribed

5. (25 pts) a. Use your pseudorandom number generator from question 4 to generate a list of 1000 random floating point numbers between 0 and 1 (duplicates are okay). Consider these values to represent probability levels that can be found by integrating the Gaussian probability density function (PDF) between x=u-5-o to x=x such that p=P(x 0: I += 4 * PDF(x, mean, stdev) elif xtol: Fnew = fon(x) delta = -Fnew/((Fnew-F)/delta) X += delta F = Fnew N += 1 return x Ay edef RG(S1, S2. $3): = (171 * $1) % 30269 S2 = (172 * $2) % 30307 $3 = = (170 * S3) % 30323 (($1/30269)+($2/30307)+($3/30323)) % 1 return r, s1, s2, 53 SeedValues = [1234, 19857, 25000) r = 10 #rows C = 10 #columns S1, S2, S3 = SeedValues A = [] dictionary = {} #Exclude repeated Variables for i in range(0, 10): row = [] count = 0 while count 0: I += 4 * PDF(x, mean, stdev) elif xtol: Fnew = fon(x) delta = -Fnew/((Fnew-F)/delta) X += delta F = Fnew N += 1 return x Ay edef RG(S1, S2. $3): = (171 * $1) % 30269 S2 = (172 * $2) % 30307 $3 = = (170 * S3) % 30323 (($1/30269)+($2/30307)+($3/30323)) % 1 return r, s1, s2, 53 SeedValues = [1234, 19857, 25000) r = 10 #rows C = 10 #columns S1, S2, S3 = SeedValues A = [] dictionary = {} #Exclude repeated Variables for i in range(0, 10): row = [] count = 0 while count

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

Oracle Database 19c DBA By Examples Installation And Administration

Authors: Ravinder Gupta

1st Edition

B09FC7TQJ6, 979-8469226970

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago