Skip to content

Instantly share code, notes, and snippets.

@edt11x
Created June 4, 2017 18:49
Show Gist options
  • Save edt11x/d2f6b386ac2729cd1f262c5577c6ff53 to your computer and use it in GitHub Desktop.
Save edt11x/d2f6b386ac2729cd1f262c5577c6ff53 to your computer and use it in GitHub Desktop.
Shell script to give a random integer in a range
#!/usr/bin/env perl
print ($ARGV[0] + int(rand($ARGV[1] - $ARGV[0])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment