mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-24 18:04:54 +08:00
修复RandomUtil.randomInt,RandomUtil.randomLong边界问题
This commit is contained in:
parent
5feb1114cf
commit
bedee44420
@ -249,7 +249,7 @@ public class RandomUtil {
|
||||
min++;
|
||||
}
|
||||
if (includeMax) {
|
||||
max--;
|
||||
max++;
|
||||
}
|
||||
return getRandom().nextInt(min, max);
|
||||
}
|
||||
@ -322,7 +322,7 @@ public class RandomUtil {
|
||||
min++;
|
||||
}
|
||||
if (includeMax) {
|
||||
max--;
|
||||
max++;
|
||||
}
|
||||
return getRandom().nextLong(min, max);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user