meshcore.js/src/random_utils.js
Luc Patiny 3f899c8445 chore: enforce prettier configuration
In order to avoid reformatting of the code this PR add a prettier configuration as well as scripts to automatically format apply the rules
2025-11-17 06:10:08 +01:00

9 lines
204 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;