MCPcopy Create free account
hub / github.com/chrxh/alien / getRandomReal

Method getRandomReal

source/Base/NumberGenerator.cpp:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41double NumberGenerator::getRandomReal(double min, double max)
42{
43 return static_cast<double>(getLargeRandomInt(static_cast<int>((max - min) * 1000)) / 1000.0 + min);
44}
45
46float NumberGenerator::getRandomFloat(float min, float max)
47{

Callers 4

randomMultiplyMethod · 0.80
randomizeEnergiesMethod · 0.80
randomizeAgesMethod · 0.80
randomizeCountdownsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected