Created
December 10, 2016 13:33
-
-
Save ViktorSimko/bbc9dd979f95262166ccfa8efad1b3bf to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
deck=({2,3,4,5,6,7,8,9,10,J,D,K,A}{K,SZ,T,P}) | |
for i in $(seq 1 $((RANDOM%1000+300))); do | |
((a=RANDOM%52)) | |
((b=RANDOM%52)) | |
tmp=${deck[$a]} | |
deck[$a]=${deck[$b]} | |
deck[$b]=$tmp | |
done | |
echo ${deck[@]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment