protected function arrayShuffle($list)
    {
        $keys = array_keys($list);
        shuffle($keys);

        $new = [];
        foreach ($keys as $key) {
            $new[$key] = $list[$key];
        }

        return $new;
    }
protected function arrayShuffle($list)
    {
        $keys = array_keys($list);
        shuffle($keys);

        $new = [];
        foreach ($keys as $key) {
            $new[$key] = $list[$key];
        }

        return $new;
    }
protected function arrayShuffle ( $ list ) { $ keys = array_keys ( $ list ) ; shuffle ( $ keys ) ; $ new = [ ] ; foreach ( $ keys as $ key ) { $ new [ $ key ] = $ list [ $ key ] ; } return $ new ; }
Shuffles an associative array

@param array $list

@return array
Shuffles an associative array