Skip to content

Instantly share code, notes, and snippets.

@ManUtopiK
Created January 20, 2022 12:14
Show Gist options
  • Save ManUtopiK/2f3bda51ea080e6a0a5b6f00e05a98a4 to your computer and use it in GitHub Desktop.
Save ManUtopiK/2f3bda51ea080e6a0a5b6f00e05a98a4 to your computer and use it in GitHub Desktop.
Play the dice
// Unicode 0x2680-0x2685 are the sides of a dice (⚀⚁⚂⚃⚄⚅)
console.log('%c'+String.fromCodePoint(0x267f + Math.floor(Math.random() * 6) + 1), 'font-size: 4rem;')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment