Skip to content

Instantly share code, notes, and snippets.

@cgsdev0
Last active January 23, 2026 22:00
Show Gist options
  • Select an option

  • Save cgsdev0/6980b06ae1ad83787177c4257ec96128 to your computer and use it in GitHub Desktop.

Select an option

Save cgsdev0/6980b06ae1ad83787177c4257ec96128 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo -ne "\033[38;5;$((RANDOM % 255))m"
printf -v hex "%x" "$((RANDOM % 93 + 33))"
printf "\x${hex}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment