src/OwpSupportMethods.inc.php
static public function randomPasswordAlphaNum($length)
    {
        $alphabets       = range('A', 'Z');
        $alphabets_lower = range('a', 'z');
        $numbers         = range('0', '9');
        $final_array     = array_merge($alphabets, $numbers, $alphabets_lower);

        $password = '';

        while($length--) {
            $key       = array_rand($final_array);
            $password .= $final_array[$key];
        }

        return (string) $password;

    }
static public function randomPasswordAlphaNum($length)
    {
        $alphabets       = range('A', 'Z');
        $alphabets_lower = range('a', 'z');
        $numbers         = range('0', '9');
        $final_array     = array_merge($alphabets, $numbers, $alphabets_lower);

        $password = '';

        while($length--) {
            $key       = array_rand($final_array);
            $password .= $final_array[$key];
        }

        return (string) $password;

    }
randomPasswordAlphaNum

@method randomPasswordAlphaNum()
@access public
@return string
@param  int $length Random password length.

@author  Brian Tafoya
@version 1.0