code: public double[] permute(double[] vector) {
  		double[] permuted = new double[vector.length];
  		for (int i = 0; i < vector.length; i++) {
  			permuted[i] = vector[randomlyPermutatedIndices[i]];
  		}
  		return permuted;
  	}
docs: Randomly permutes a vector using the random permutation of the indices that was created in the
  constructor.
  
  @param vector
  The initial vector
  @return The randomly permuted vector