mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-03 16:52:31 +01:00
python/pin.py: initial commit
This commit is contained in:
parent
5d41a732e1
commit
cbdb39e07d
15
python/pin.py
Executable file
15
python/pin.py
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/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()
|
Loading…
Reference in New Issue
Block a user