public static int getAbnormalData(int frequency) {
    return random.nextInt() % frequency;
  }
get random int between 0 and frequency.
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/utils/RandomNum.java