Computer Science, asked by rajeshfcoy5555, 1 month ago

Isu
Q-24
What is difference between Random and math module .Give any one Example​

Answers

Answered by hazrakhatoon255
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 Anonymous
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