Skip to content

Instantly share code, notes, and snippets.

@vamdt
Created February 14, 2019 07:59
Show Gist options
  • Save vamdt/970dce78d3d7b7e02b3a3215c99ba4e8 to your computer and use it in GitHub Desktop.
Save vamdt/970dce78d3d7b7e02b3a3215c99ba4e8 to your computer and use it in GitHub Desktop.
bash_random.sh
#!/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