head /dev/urandom | tr -dc A-Za-z0-9 | head -c10
# Assigning it to a variable
ranNum=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c10)
Source:
https://unix.stackexchange.com/questions/230673/how-to-generate-a-random-string
head /dev/urandom | tr -dc A-Za-z0-9 | head -c10
# Assigning it to a variable
ranNum=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c10)
Source:
https://unix.stackexchange.com/questions/230673/how-to-generate-a-random-string