Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ drandom
Function
drandom
library/include/modules/Random.h:72–74 ·
view source on GitHub ↗
[0, 1)
Source
from the content-addressed store, hash-verified
70
}
71
// [0, 1)
72
double drandom() {
73
return double(random())/4294967296.0;
74
}
75
// [0, 1]
76
double drandom1() {
77
return double(random())/4294967295.0;
Callers
nothing calls this directly
Calls
1
random
Function · 0.85
Tested by
no test coverage detected