QUESTION IMAGE
Question
question # 4
multiple choice
which statement is true about the random and secrets modules?
neither module can generate random numbers.
only the random module can generate random numbers.
only the secrets module can generate random numbers.
both modules can generate random numbers.
Brief Explanations
In Python, the random module is used for generating pseudo - random numbers for general purposes, and the secrets module is used for generating cryptographically - strong random numbers. Both can generate 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
D. Both modules can generate random numbers.