easy way to generate random password
PHP Code:
$length = 12; //password length
$password = substr(preg_replace('/\W/', '', md5(rand())), 0, $length);
Comment