mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
In order to avoid reformatting of the code this PR add a prettier configuration as well as scripts to automatically format apply the rules
9 lines
204 B
JavaScript
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;
|