code: public DenseVector sampleVec(int numSamples, Random rand)
      {
          return DenseVector.toDenseVec(sample(numSamples, rand));
      }
docs: This method returns a double array containing the values of random samples from this distribution.
  
  @param numSamples the number of random samples to take
  @param rand the source of randomness
  @return a vector of the random sample values