public static int nextInt(final int startInclusive, final int endExclusive) {
        checkParameters(startInclusive, endExclusive);
        int diff = endExclusive - startInclusive;
        if (diff == 0) {
            return startInclusive;
        }
        return startInclusive + RANDOM.nextInt(diff);
    }
@Test
    void testNextIntWithSame() {
        final int result = RandomUtils.nextInt(1, 1);
        assertEquals(1, result);
    }