Merge pull request #3450 from holmebin/test-branch

Test branch
This commit is contained in:
Golden Looly 2023-12-29 00:25:31 +08:00 committed by GitHub
commit a68d57062f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ public class RandomUtil {
min++; min++;
} }
if (includeMax) { if (includeMax) {
max--; max++;
} }
return getRandom().nextInt(min, max); return getRandom().nextInt(min, max);
} }
@ -296,7 +296,7 @@ public class RandomUtil {
min++; min++;
} }
if (includeMax) { if (includeMax) {
max--; max++;
} }
return getRandom().nextLong(min, max); return getRandom().nextLong(min, max);
} }