MCPcopy Create free account
hub / github.com/crawl/crawl / ui_random

Function ui_random

crawl-ref/source/random.cc:220–225  ·  view source on GitHub ↗

[0, max), separate RNG state

Source from the content-addressed store, hash-verified

218
219// [0, max), separate RNG state
220int ui_random(int max)
221{
222 rng::generator ui(rng::UI);
223
224 return random2(max);
225}
226
227// [0, 1]
228bool coinflip()

Callers 6

get_vortex_phaseFunction · 0.85
GodMenuEntryMethod · 0.85
malmutateMethod · 0.85
_tileidx_corpseFunction · 0.85
tileidx_cloudFunction · 0.85
vary_bolt_tileFunction · 0.85

Calls 1

random2Function · 0.85

Tested by

no test coverage detected