MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / drand

Function drand

contents/barnsley/code/cpp/barnsley.cpp:53–55  ·  view source on GitHub ↗

Returns a random double in [0, 1)

Source from the content-addressed store, hash-verified

51
52// Returns a random double in [0, 1)
53double drand() {
54 return std::uniform_real_distribution<double>(0.0, 1.0)(rng());
55}
56
57// This is a function that reads in the Hutchinson operator and
58// corresponding

Callers 1

select_arrayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected