Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ df_loadtrandom
Method
df_loadtrandom
library/modules/Random.cpp:118–124 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
116
}
117
118
int32_t MersenneRNG::df_loadtrandom(uint32_t max)
119
{
120
uint32_t seed=random();
121
seed=seed%max;
122
123
return((int32_t)seed);
124
}
125
126
template<class T>
127
void MersenneRNG::unitvector(T *p, int size)
Callers
nothing calls this directly
Calls
1
random
Function · 0.85
Tested by
no test coverage detected