Created
February 14, 2019 07:59
-
-
Save vamdt/970dce78d3d7b7e02b3a3215c99ba4e8 to your computer and use it in GitHub Desktop.
bash_random.sh
This file contains hidden or 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 | |
while true | |
do | |
if [[ $(($RANDOM % 2)) -eq 0 ]] | |
then | |
echo "000" | |
else | |
echo "111" | |
fi | |
sleep 0.1 | |
printf "\n" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment