public byte[] getNextBytes(int maxBytesLength) {
    byte[] bytes = new byte[this.getNextInt(0, maxBytesLength)];
    rand.nextBytes(bytes);
    return bytes;
  }
Simple utility to generate random values.
samza-tools/src/main/java/org/apache/samza/tools/RandomValueGenerator.java