MCPcopy Create free account
hub / github.com/denoland/std / prng

Function prng

random/between_test.ts:101–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100Deno.test("randomBetween() never returns max, even if the prng returns its max value", () => {
101 const prng = () => 0.9999999999999999;
102 const result = randomBetween(1, 2, { prng });
103 assertNotEquals(result, 2);
104});

Callers 2

shuffleFunction · 0.85
seeded_test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected