Skip to content

Instantly share code, notes, and snippets.

@slumos
Created December 27, 2012 01:00
Show Gist options
  • Select an option

  • Save slumos/4384511 to your computer and use it in GitHub Desktop.

Select an option

Save slumos/4384511 to your computer and use it in GitHub Desktop.
Get a random sequence from random.org
#! /bin/zsh
function usage {
print "$0:r max [min]" 1>&2
}
max=$1
min=${2:-1}
if [ -z $max ]; then
usage
exit 1
fi
curl -s "http://www.random.org/sequences/?min=${min}&max=${max}&col=1&format=plain&md=new"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment