Skip to content

Instantly share code, notes, and snippets.

@saihoooooooo
Created January 18, 2014 01:28
Show Gist options
  • Select an option

  • Save saihoooooooo/8484858 to your computer and use it in GitHub Desktop.

Select an option

Save saihoooooooo/8484858 to your computer and use it in GitHub Desktop.
random number generator. (bash)
#!/bin/bash
awk 'BEGIN {srand(); print int(6 * rand()) + 1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment