MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / random

Method random

src/monogatari.ts:2487–2494  ·  view source on GitHub ↗

* Random number between `min` and `max` * @param {number} min * @param {number} max * @returns {number}

(min: number, max: number)

Source from the content-addressed store, hash-verified

2485 * @returns {number}
2486 */
2487 static random (min: number, max: number) {
2488 try {
2489 return new Random (browserCrypto).integer (min, max);
2490 } catch (e) {
2491 console.error (e);
2492 return new Random ().integer (min, max);
2493 }
2494 }
2495}
2496
2497// =============================================================================

Callers 3

humanizeSpeedFunction · 0.80
AudioPlayer.tsFile · 0.80
commands.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected