Generating random strings in Bash

How to generate random strings in Bash.