public static long nextLong(final long startInclusive, final long endExclusive) {
        checkParameters(startInclusive, endExclusive);
        long diff = endExclusive - startInclusive;
        if (diff == 0) {
            return startInclusive;
        }
        return (long) (startInclusive + (diff * RANDOM.nextDouble()));
    }
@Test
    void testNextLongWithIllegalArgumentException() {
        assertThrows(IllegalArgumentException.class, () -> {
            RandomUtils.nextLong(999L, 199L);
        });
    }