View randomPasswordGenerator.php
<?php
/**
* Generate a random human-readable passwort
* Including the modifications by Josh Hartman made on 12/30/2010. https://github.com/joshhartman
* Josh added the ability to append a double digit number
* I added a parameter to decide on whether to append the number
*
* Also, if the length is not dividable by 2, the length of the password will be $length + 1
*
* @param int $length