Skip to content

Instantly share code, notes, and snippets.

@hdclark
Created January 28, 2012 04:21
Show Gist options
  • Save hdclark/1692614 to your computer and use it in GitHub Desktop.
Save hdclark/1692614 to your computer and use it in GitHub Desktop.
Why did I create this?
#!/bin/bash
width=200
offset=400
var=$RANDOM
let "var %= $width"
let "var += $offset"
echo $var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment