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