1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Use better random number generation package

This commit is contained in:
tobspr
2022-06-12 17:33:54 +02:00
parent 48ac343260
commit 44d0a8bcf7
3 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { T } from "../translations";
import { rando } from "@nastyox/rando.js";
const bigNumberSuffixTranslationKeys = ["thousands", "millions", "billions", "trillions"];
@@ -42,7 +43,7 @@ export function newEmptyMap() {
* @param {number} end
*/
export function randomInt(start, end) {
return Math.floor(Math.random() * (end - start + 1) + start);
return rando(start, end);
}
/**