QUESTION IMAGE
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()
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
C. seed()