random.pwdGen.php - mimic traditional pwd mgr algorithm

also some interface change