Isu
Q-24
What is difference between Random and math module .Give any one Example
Answers
Answered by
0
Answer:
The random module is a built-in module to generate the pseudo-random variables. It can be used perform some action randomly such as to get a random number, selecting a random elements from a list, shuffle elements randomly, etc.
Answered by
1
The secrets module is design for cryptography - it generates robust random numbers which almost certainly don’t use the mersene twister generator that the random module uses by default. Also the functions in the secrets module are design for generation of secret keys, urls etc, whereas the functions in the random module are designed for shuffling data etc.
Similar questions
English,
10 days ago
Math,
10 days ago
Physics,
20 days ago
Social Sciences,
20 days ago
English,
8 months ago