Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
lunch picker
function food()
{
arr[0]="Jimmy Johns"
arr[1]="Pita Inn"
arr[2]="Noodle and company"
arr[3]="Potbelly"
arr[4]="Chipotle"
arr[5]="portillos"
arr[6]="Wendy's"
arr[7]="Josh's"
rand=$[$RANDOM % ${#arr[@]}]
echo -e "processing "
sleep 2
echo -e "still thinking "
sleep 2
echo -e "wait for it "
sleep 1
echo $(date +%m-%d-%Y" "%H:%M:%S);
echo "lunch selection says" ${arr[$rand]}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.