0
I need help with python
Hey so I am needing help with a number generator what would be the import for it because It needs to pick a number 1 through 999,999,999,999,999 🙂
3 odpowiedzi
+ 7
import random
z = random.randint(1,999)
print(z)
+ 2
You can use randint function from random module. Integers in Python have no size limit so you can use the big number directly in the function.
+ 1
random or secrets module.