what is it you are trying to accomplish with a random password?
In the archived documentation section of security assist, the tutorial for Encryption walks through using the random password generator on the forgot password page to send a random password to the user if they forget their login.