Pick random element: Difference between revisions

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