6.X/traits/utils.php
/**
     * Create a 5-digital-digit prand_seed from an md5 string
     *
     * A few digits of the md5 string will be cut out of the middle of the string, converted to integer, and limited at 11111-27999
     *
     * @param $md string The input md5 string
     *
     * @return int
     */
Create a 5-digital-digit prand_seed from an md5 string
A few digits of the md5 string will be cut out of the middle of the string, converted to integer, and limited at 11111-27999

@param $md string The input md5 string

@return int
Create a 5 - digital - digit prand_seed from an md5 string A few digits of the md5 string will be cut out of the middle of the string converted to integer and limited at 11111 - 27999 @param $md string The input md5 string @return int
public function prand_md5_seed($md5){
        $s = substr($md5, 8, 6);
        $int = intval($s, 16);
        $v = $int % 16889;
        $this->prand_seed = $v + 11111;
        return $this->prand_seed;
    }
public function prand_md5_seed ( $ md5 ) { $ s = substr ( $ md5 , 8 , 6 ) ; $ int = intval ( $ s , 16 ) ; $ v = $ int % 16889 ; $ this -> prand_seed = $ v + 11111 ; return $ this -> prand_seed ; }
Create a 5-digital-digit prand_seed from an md5 string
 A few digits of the md5 string will be cut out of the middle of the string, converted to integer, and limited at 11111-27999
Create a 5 - digital - digit prand_seed from an md5 string A few digits of the md5 string will be cut out of the middle of the string converted to integer and limited at 11111 - 27999