docs: protected double[] makeSample(int maxk) {
      final Random rnd = this.rnd.getSingleThreadedRandom();
      double[] dists = new double[maxk + 1];
      final double e = 1. / dim;
      for(int i = 0; i <= maxk; i++) {
        dists[i] = FastMath.pow(rnd.nextDouble(), e);
      }
      Arrays.sort(dists);
      return dists;
    }