MCPcopy Index your code
hub / github.com/marijnh/Eloquent-JavaScript / r1

Function r1

code/hangar2.js:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9 let rState = 81782
10 function r1() {
11 rState ^= rState << 13
12 rState ^= rState << 17
13 rState ^= rState << 5
14 return (rState & 0xffffff) / 0xffffff
15 }
16 function r(n) {
17 return Math.floor(r1() * n)
18 }

Callers 1

rFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected