Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
220
int ui_random(int max)
221
{
222
rng::generator ui(rng::UI);
223
224
return random2(max);
225
}
226
227
// [0, 1]
228
bool coinflip()
Callers
6
get_vortex_phase
Function · 0.85
GodMenuEntry
Method · 0.85
malmutate
Method · 0.85
_tileidx_corpse
Function · 0.85
tileidx_cloud
Function · 0.85
vary_bolt_tile
Function · 0.85
Calls
1
random2
Function · 0.85
Tested by
no test coverage detected