mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-11-19 09:29:39 +01:00
16 lines
304 B
Python
Executable File
16 lines
304 B
Python
Executable File
#!/usr/bin/env python
|
|
import secrets
|
|
import sys
|
|
|
|
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()
|