diff --git a/python/pin.py b/python/pin.py new file mode 100755 index 0000000..4c02ad3 --- /dev/null +++ b/python/pin.py @@ -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()