In Python 3.6, new module, secrets, was added.
secrets
What is the most efficient way to generate random integer in range [n, m) using this module?
[n, m)
I tried choice(range(n, m)), but I doubt it is the best way.
choice(range(n, m))
Aucun commentaire:
Enregistrer un commentaire