Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quacks=("HONK HONK HONK" "quack!" "QUACK!" "squawk!")
- # $RANDOM provides 15 bits of randomness, for a proper uniform distribution
- # the array size must be a power of two or you have to re-roll as needed.
- cowsay -f duck "${quacks[$((RANDOM & 0x3))]}"
- unset quacks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement