Most of the web application consists of login pages which authenticate the user based on username and password. For the registoration purposes you might need to create a random password and email the password to the user and than the user has to use that password to log to the website. In this article we will see how we can create a random password.