6.X/traits/utils.php
/**
     * Pseudo-random shuffling of an array
     *
     * Unlike the original shuffle(), this one will generate the same pseudo-random results depending on the initial prand_seed
     *
     * @param $array &array The array to shuffle
     *
     * @return bool
     */
Pseudo-random shuffling of an array
Unlike the original shuffle(), this one will generate the same pseudo-random results depending on the initial prand_seed



@return bool
Pseudo - random shuffling of an array Unlike the original shuffle () this one will generate the same pseudo - random results depending on the initial prand_seed @return bool
public function prand_shuffle(&$array)
    {
        $l = count($array);
        for($i = 0; $i < $l; $i++){
            $v = $array[$i];
            $idx = $this->prand(0, $l - 1);
            $array[$i] = $array[$idx];
            $array[$idx] = $v;
        }
        return true;
    }
public function prand_shuffle ( & $ array ) { $ l = count ( $ array ) ; for ( $ i = 0 ; $ i < $ l ; $ i ++ ) { $ v = $ array [ $ i ] ; $ idx = $ this -> prand ( 0 , $ l - 1 ) ; $ array [ $ i ] = $ array [ $ idx ] ; $ array [ $ idx ] = $ v ; } return true ; }
Pseudo-random shuffling of an array
 Unlike the original shuffle(), this one will generate the same pseudo-random results depending on the initial prand_seed
Pseudo - random shuffling of an array Unlike the original shuffle () this one will generate the same pseudo - random results depending on the initial prand_seed