MCPcopy Create free account
hub / github.com/avoidwork/tenso / random

Function random

src/utils/random.js:9–15  ·  view source on GitHub ↗
(n = INT_100)

Source from the content-addressed store, hash-verified

7 * @returns {number} A random integer between 1 and n
8 */
9export function random (n = INT_100) {
10 if (n < INT_1) {
11 return INT_1;
12 }
13
14 return randomInt(INT_1, n + INT_1);
15}

Callers 2

delayFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected