scripts/python/pin.py

16 lines
292 B
Python
Raw Normal View History

2022-03-18 16:59:07 +01:00
#!/usr/bin/env python
import sys
import secrets
try:
wantedCount = int(sys.argv[1])
except IndexError as noarg:
print("Enter a digit as an argument!")
try:
for i in range(int(wantedCount)):
print(secrets.randbelow(10),end="")
except NameError as noWantedCount:
print()
print()