Merged reflector-ui (now "www") into single repo

This commit is contained in:
Koper
2023-07-26 15:18:05 +07:00
parent 9a57a89b5b
commit 401aa1e6f9
24 changed files with 0 additions and 0 deletions

19
www/app/utils.js Normal file
View File

@@ -0,0 +1,19 @@
export function getRandomNumber(min, max) {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
export function SeededRand(seed) {
seed ^= seed << 13;
seed ^= seed >> 17;
seed ^= seed << 5;
return seed / 2 ** 32;
}
export function Mulberry32(seed) {
return function () {
var t = (seed += 0x6d2b79f5);
t = Math.imul(t ^ (t >>> 15), t | 1);
t ^= t + Math.imul(t ^ (t >>> 7), t | 61);
return ((t ^ (t >>> 14)) >>> 0) / 4294967296;
};
}