original_string: public function randomizeFilter($original, $offset = 0)
      {
          if (!\is_array($original)) {
              return $original;
          }
  
          if ($original instanceof \Traversable) {
              $original = iterator_to_array($original, false);
          }
  
          $sorted = [];
          $random = array_slice($original, $offset);
          shuffle($random);
  
          $sizeOf = \count($original);
          for ($x = 0; $x < $sizeOf; $x++) {
              if ($x < $offset) {
                  $sorted[] = $original[$x];
              } else {
                  $sorted[] = array_shift($random);
              }
          }
  
          return $sorted;
      }
code: public function randomizeFilter($original, $offset = 0)
      {
          if (!\is_array($original)) {
              return $original;
          }
  
          if ($original instanceof \Traversable) {
              $original = iterator_to_array($original, false);
          }
  
          $sorted = [];
          $random = array_slice($original, $offset);
          shuffle($random);
  
          $sizeOf = \count($original);
          for ($x = 0; $x < $sizeOf; $x++) {
              if ($x < $offset) {
                  $sorted[] = $original[$x];
              } else {
                  $sorted[] = array_shift($random);
              }
          }
  
          return $sorted;
      }
code_tokens: public function randomizeFilter ( $ original , $ offset = 0 ) { if ( ! \ is_array ( $ original ) ) { return $ original ; } if ( $ original instanceof \ Traversable ) { $ original = iterator_to_array ( $ original , false ) ; } $ sorted = [ ] ; $ random = array_slice ( $ original , $ offset ) ; shuffle ( $ random ) ; $ sizeOf = \ count ( $ original ) ; for ( $ x = 0 ; $ x < $ sizeOf ; $ x ++ ) { if ( $ x < $ offset ) { $ sorted [ ] = $ original [ $ x ] ; } else { $ sorted [ ] = array_shift ( $ random ) ; } } return $ sorted ; }
docstring: Returns array in a random order.
  
  @param  array $original
  @param  int   $offset Can be used to return only slice of the array.
  
  @return array
docstring_tokens: Returns array in a random order .