MCPcopy 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
118int32_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
126template<class T>
127void MersenneRNG::unitvector(T *p, int size)

Callers

nothing calls this directly

Calls 1

randomFunction · 0.85

Tested by

no test coverage detected