Why is it important to set the seed of a pseudo random generator? a) A pseudo ra
ID: 3583082 • Letter: W
Question
Why is it important to set the seed of a pseudo random generator?
a) A pseudo random generator does not work without a seed.
b) If a seed is not set, the generated numbers are not random (not even pseudo random).
c) Without a seed, the generator will produce different sequences every time the program is run, making its debugging and testing hard or impossible.
a) A pseudo random generator does not work without a seed.
b) If a seed is not set, the generated numbers are not random (not even pseudo random).
c) Without a seed, the generator will produce different sequences every time the program is run, making its debugging and testing hard or impossible.
Explanation / Answer
Answer - Option B
In computer programming, whenever used, seed allows you to get a determined sequence of random numbers. With the same seed, a pseudo random number generator will produce the same sequence every time, If a seed is not set, the generated numbers are not random (not even pseudo random). So It important to set the seed of a pseudo random generator to genrate random numbers every time you use it. It depends on user requirement that whether you need a different random numbers each time you run, or you need same number ever time as per requirement having the advantage of repeating a random number sequence by supplying the same seed.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.