Skip to content

Instantly share code, notes, and snippets.

@Likeyn
Created August 27, 2014 00:48
Show Gist options
  • Save Likeyn/0270bf6b01bf50d57779 to your computer and use it in GitHub Desktop.
Save Likeyn/0270bf6b01bf50d57779 to your computer and use it in GitHub Desktop.
Get a random char
#!/usr/bin/env bash
# Get a random char
echo $(cat /dev/urandom | tr -dc 'A-Z' | head -c 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment