mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
12 lines
222 B
JavaScript
12 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;
|