X-Git-Url: https://git.slaskete.net/einar-bin/blobdiff_plain/4111dae40affd9355a92c91ee2c45a71f901ee19..786a748526ff8b83773ad389dc37a3f87944d526:/imgurgame.bash?ds=sidebyside diff --git a/imgurgame.bash b/imgurgame.bash index d1f9fdd..88af620 100755 --- a/imgurgame.bash +++ b/imgurgame.bash @@ -5,7 +5,7 @@ readonly BROWSER="google-chrome" # Create a random imgur url that may or may not be valid imgururl() { - # 1/3% chance for length of 5, 6 or 7 length string + # 1/3 chance for length of 5, 6 or 7 length string STRLN=$((5 + ${RANDOM} % 3)) local ID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${STRLN} | head -n 1) echo "http://i.imgur.com/${ID}.jpg"