Skip to content

Instantly share code, notes, and snippets.

@codeincontext
Created August 29, 2016 22:09

Revisions

  1. Adam Howard created this gist Aug 29, 2016.
    5 changes: 5 additions & 0 deletions random_emoji.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash

    emojis=( ✨ ⚡️ 💫 🔑 )
    num_emojis=${#emojis[*]}
    echo "${emojis[$((RANDOM%num_emojis))]}"