Pick random element: Difference between revisions
Content deleted Content added
→{{header|Bash}}: fixed it so the syntax highlighter also understands it |
|||
Line 79: | Line 79: | ||
done |
done |
||
unset TH[0] |
unset TH[0] |
||
echo -n ${TH[$(($(rand "${#TH[*]}")+1))]} |
echo -n "${TH[$(($(rand "${#TH[*]}")+1))]}" |
||
#" #rosettacode syntax highlighter fix, feel free to remove |
#" #rosettacode syntax highlighter fix, feel free to remove |
||
} |
} |