Created
February 10, 2016 23:18
-
-
Save breun/04512e78f5e82818940e to your computer and use it in GitHub Desktop.
Groovy version of https://gist.github.com/iandundas/59303ab6fd443b5eec39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def randomEmoji() { | |
def values = 0x1F601..0x1F64F | |
def randomValue = values[new Random().nextInt(values.size())] | |
Character.toChars(randomValue) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment