Question

3. Generate random numbers as indicated and comment on the results. (a) generate 10 random numbers using the middle-square me

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Pq No-1 Solution : - Given data : A). Generate 10 Random numbers using the middle - Square Method using 80 = 1009 : In the miPq No- >02) - (0324) 2 - 00104976 x₃ = loug → (x3)} = (1049) - 01100401 24 = 1004 bu)? = (100u)? - 01008016 25 - 0080 → (25)2Pq No - 6 → (X3)? - (0016) 200000 256 Hq = 0002 → (38q)2 = (2002) - 00000004 810= 0000 Now all the an, n=10 / xn=0000/ - with► 2,= (5(0) +1) mod 8 = 6 (mod 8) = 6 → 82.-(5(6)+ 1) mods = 31 (mods) 7 → 43 = (5(1) +1) mods = 36 (mod 8) → xy = (5(4)+ 1)la no-6 > dle = (500) + 1 ) mod 8 - 1 (mod 8) → 89 = (50)+1 ) mod 8 = 6 (mod 8) we Start Repeated there so x 10 =*2=7 *1 = 23

Add a comment
Know the answer?
Add Answer to:
3. Generate random numbers as indicated and comment on the results. (a) generate 10 random numbers...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT