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 |
echo -n ${TH[$(($(rand "${#TH[*]}")+1))]} |
||
#" #rosettacode syntax highlighter fix, feel free to remove |
|||
} |
} |
||