echo $( (tr -cd '[:alnum:]' | head -c $1) < /dev/urandom)