Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

pls do not write any computer code ir anything complicated i just started compter sci in geade 11. it has to be coded in java

pls do not write any computer code ir anything complicated i just started compter sci in geade 11. it has to be coded in java and make it very easy to understand
image text in transcribed
Exercise 8 RandomGenerator Create a RandomGenerator application that implements the Linear Congruential Method. The formula used by this method is: Use constant integers for a, e, and m Choose a seed integer value for X Show 10 numbers from the sequence. Application output should look similar to: Seed - 12, a - 1246. c - 208. - 50 U (1246 -12 + 200) % 50-2 (12462 298) x 59-42 (1246-42 200 % 50-32 (124632 209) x 59-22 (1246 22 +299) % 50-12 (1246M12 + 20 >% 50-2 (12462 +280) x 59-42 (1246 -42 200) % 59-32 (124632 +299) % 59-22 (1246-22 +280) % 50-12 Note the sequence shown in the output repeats after five numbers. Experiment by changing the values for a, cm, and X (the seed) to see which values create the most "random" sequence of numbers (the largest set of nonrepeating numbers)

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

Students also viewed these Databases questions

Question

How much of this is in your direct control?

Answered: 1 week ago