Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 4 multiple choice which statement is true about the random a…

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.

Explanation:

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.

Answer:

D. Both modules can generate random numbers.