blob: 3bf5bd8245f1df1b9f6ec988d8caeeef763f5ce8 (
plain)
1
2
3
4
5
6
|
#!/bin/sh
wf=/usr/share/dict/words
total_words=`wc -l $wf | tr -d ' ' | cut -d'/' -f1`
ln=`python3 -c "import secrets; print(secrets.randbelow($total_words))"`
tail -n $ln $wf | head -n 1
|