+ static getRandomFloat(max, min = 0) {
+ if (min) {
+ return Math.random() * (max - min + 1) + min;
+ }
+ return Math.random() * max + 1;
+ }
+
+ static getRandomInt(max, min = 0) {
+ if (min) {
+ return Math.floor(Utils.getRandomFloat(max, min));
+ }
+ return Math.floor(Utils.getRandomFloat(max));
+ }
+
+ static roundTo(number, scale) {
+ return Utils.convertToFloat(number.toFixed(scale));
+ }
+
+ static getRandomFloatRounded(max, min = 0, scale = 2) {