Tutorialspoint

Generate cryptographically secure random numbers in python

import random
randGen = random.SystemRandom()
for x in range(0,10):
  secV = 10+ randGen.randint(0,499)
  print(secV)

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.