private function hex16(){
        $val = dechex(floor((1 + ((float)rand()/(float)getrandmax())) * 0x10000));
        return substr($val,0,-1);
    }
private function hex16(){
        $val = dechex(floor((1 + ((float)rand()/(float)getrandmax())) * 0x10000));
        return substr($val,0,-1);
    }
private function hex16 ( ) { $ val = dechex ( floor ( ( 1 + ( ( float ) rand ( ) / ( float ) getrandmax ( ) ) ) * 0x10000 ) ) ; return substr ( $ val , 0 , - 1 ) ; }
Calculates a random 16 bit number and returns it in hexadecimal format.
@return string A 16-bit number in hex format.
Calculates a random 16 bit number and returns it in hexadecimal format .