Last active
April 13, 2023 12:58
-
-
Save devlato/accd4b875253429184e39159e036bbe9 to your computer and use it in GitHub Desktop.
Chooses console for you
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
#!/usr/bin/env bash | |
chooseConsole() { | |
declare -a consoles=('PS4' 'PS4 Pro' 'Xbox One' 'XBox One S', 'Nintendo Switch', 'PS5', 'Xbox Series X') | |
local index=$(( $[$RANDOM % ${#consoles[@]}] )) | |
echo "${consoles[$index]}" | |
} | |
echo "You should get $(chooseConsole)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment