I need a command line script that will generate a random integer between 1 and 6. I'm using Ubuntu with bash.
I was working on this a couple of months ago using 'bc', but never got it to work completely. I've since forgotten where I got to.
I'm using this to change a crontab script so that it will not always run every 15 minutes, but at random times (15+-3 minutes). ie. change the crontab to be every 12 minutes, and then in the script sleep for 1-6 minutes before running the script (which is basically a wget to check on the status of a webpage).