Browse Source

Random number generator script

pull/2/head
Josh Wolfe 6 years ago
parent
commit
98dbac46e4
  1. 8
      bin/anumgen

8
bin/anumgen

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 [number]"
exit 1
fi
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w $1 | head -n 1
Loading…
Cancel
Save