public class RandomUtils extends Object
public static long nextLong(long startInclusive,
long endExclusive)
startInclusive - the smallest value that can be returned, must be non-negativeendExclusive - the upper bound (not included)IllegalArgumentException - if startInclusive or endExclusive illegalpublic static int nextInt(int startInclusive,
int endExclusive)
startInclusive - lower limit, must be non-negativeendExclusive - the upper bound (not included)IllegalArgumentException - if startInclusive or endExclusive illegalCopyright © 2018–2024 Alibaba Group. All rights reserved.