MCPcopy Index your code
hub / github.com/NetHack/NetHack / RND

Function RND

src/rnd.c:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60staticfn int
61RND(int x)
62{
63 return (isaac64_next_uint64(&rnglist[CORE].rng_state) % x);
64}
65
66/* 0 <= rn2(x) < x, but on a different sequence from the "main" rn2;
67 used in cases where the answer doesn't affect gameplay and we don't

Callers 4

rn2Function · 0.85
rnlFunction · 0.85
rndFunction · 0.85
dFunction · 0.85

Calls 1

isaac64_next_uint64Function · 0.85

Tested by

no test coverage detected