docs: static public void sampleWithReplacement(int[] sampleCounts, int samples, Random rand)
      {
          Arrays.fill(sampleCounts, 0);
          for(int i = 0; i < samples; i++)
              sampleCounts[rand.nextInt(sampleCounts.length)]++;
      }