MCPcopy Create free account
hub / github.com/HexHive/NASS / randomFloat

Function randomFloat

fans/fuzzer-engine/fuzzer/src/utils/random.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18float randomFloat(float min, float max) {
19 random_device rd;
20 mt19937_64 e(rd());
21 uniform_real_distribution<float> u(min, max);
22 return u(e);
23}
24
25double randomDouble(double min, double max) {
26 random_device rd;

Callers 2

generateMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected