code: protected boolean sample() {
          if (curr.increment() >= freq) {
              curr.set(0);
              target.set(rand.nextInt(freq));
          }
          return curr.get() == target.get();
      }
docs: a faster sampling way