6
AssignmentMultiple Choice

Can Anything Be Random?

Question 6 • SC-Fundamentals of Computing - Content Recovery - Design & Development

What method is used to prevent the random number generator from always starting with the same number?

Answer
A
random()
B
randint()
C
seed()
D
initialize()

Explanation

A pseudorandom number generator starts from a seed value. Calling seed() with a changing value, such as the current time, helps prevent it from starting with the same number each run. The correct choice is seed().

AI-written and checked against the verified answer.