meshcore.js/src/random_utils.js

12 lines
222 B
JavaScript
Raw Normal View History

2025-03-17 23:17:03 +13:00
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;