Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 2 multiple choice what method is used to prevent the random …

Question

question # 2
multiple choice
what method is used to prevent the random number generator from always starting with the same number?
random()
randint()
seed()
initialize()

Explanation:

Brief Explanations

The seed() function is used to initialize the random - number generator. By changing the seed value (for example, using a value related to the current time like the number of seconds since a certain epoch), we can prevent the random number generator from always starting with the same number. Different seeds lead to different sequences of "random" numbers.

Answer:

C. seed()