code: public boolean countCheck() {
          i.incrementAndGet();
          if (i.get() > freq) {
              target = r.nextInt(freq);
              i.set(0);
          }
          return i.get() == target;
      }
docs: select 1/freq