meshcore.js/src/random_utils.js
2025-03-17 23:17:03 +13:00

11 lines
222 B
JavaScript

class RandomUtils {
static getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
}
export default RandomUtils;