cointoss() {
# Probability is $1/$2, for example, cointoss 3 5
# will hit 60% of the time. Defaults to 1/2 if no
# arguments are supplied.
[ $((RANDOM % ${2-2})) -lt ${1-1} ];
}
cointoss() {
# Probability is $1/$2, for example, cointoss 3 5
# will hit 60% of the time. Defaults to 1/2 if no
# arguments are supplied.
[ $((RANDOM % ${2-2})) -lt ${1-1} ];
}