subject
Engineering, 22.02.2020 01:43 isabelperez063

G For testing purposes, we require being able to predict the 'random' results. Setting a seed for the random number generator accomplishes this because it allows for a pseudo random number to be generated in a predictable order. For example, a seed of 85 for range of [3 to 9] may result in 4, 4, 9 for the first three values, while a seed of 2 for the same range may result in 5, 3, 4 for the first three values. With everyone using the same seed value, we are able to determine if your code produces the correct 'random' values. Without setting the seed, the results of the random number generator will always be different, making it impossible to verify that your code works. As discussed above in (2), Config. SEED is a constant named SEED declared in the Config. java file. Don't use the number in your RandomGenerator program, just use this constant.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 15:10
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
Water at 70°f and streams enter the mixing chamber at the same mass flow rate, determine the temperature and the quality of the exiting stream. 0 psia is heated in a chamber by mixing it with saturated water vapor at 20 psia. if both streams enters the mixing chamber at the same mass flow rate, determine the temperature and the quality of the existing system.
Answers: 2
question
Engineering, 04.07.2019 18:10
Burgers vector is generally parallel to the dislocation line. a)-true b)-false
Answers: 2
You know the right answer?
G For testing purposes, we require being able to predict the 'random' results. Setting a seed for th...
Questions
question
Mathematics, 02.04.2021 01:50
question
Mathematics, 02.04.2021 01:50
question
Biology, 02.04.2021 01:50
question
History, 02.04.2021 01:50
question
Mathematics, 02.04.2021 01:50
question
Arts, 02.04.2021 01:50
Questions on the website: 13722367