MCPcopy Create free account
hub / github.com/node-modules/utility / random65536

Function random65536

benchmark/random_integer.cjs:13–15  ·  view source on GitHub ↗
(upper)

Source from the content-addressed store, hash-verified

11}
12
13function random65536(upper) {
14 return crypto.randomBytes(2).readUIntBE(0, 2) % upper;
15}
16
17console.log('random256: %s', random256(100));
18console.log('utility.random(100): %s', utility.random(100));

Callers 1

random_integer.cjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…