password generator

Nid: 1436
(
  tr -dc 'A-Z' </dev/urandom 2>/dev/null | head -c1;         # One random uppercase letter
  tr -dc 'a-z' </dev/urandom 2>/dev/null | head -c1;         # One random lowercase letter
  tr -dc '0-9' </dev/urandom 2>/dev/null | head -c1;         # One random digit
  tr -dc '@#%^+=_' </dev/urandom 2>/dev/null | head -c1;     # One special symbol
  tr -dc 'A-Za-z0-9@#%^+=_' </dev/urandom 2>/dev/null | head -c12  # 12 more characters from all allowed types
) | shuf