Using str_shuffle string function we can develop a short code to generate random passwords. Users can have options on how to generate the string by including and removing type of characters to be used in string.