@Override
    public int nextInt(int bound) {
        return nextIntFunction.apply(bound).orElse(super.nextInt(bound));
    }
A Random instance that makes it easy to modify the behavior of certain methods for test purposes.
raft/src/test/java/org/apache/kafka/raft/MockableRandom.java