MCPcopy Create free account
hub / github.com/NanoComp/meep / uniform_random

Function uniform_random

src/random.cpp:52–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52double uniform_random(double a, double b) {
53 init_rand();
54 return a + meep_mt_genrand_res53() * (b - a);
55}
56
57double gaussian_random(double mean, double stddev) {
58 init_rand();

Callers 1

get_eigenmodeMethod · 0.85

Calls 2

init_randFunction · 0.85
meep_mt_genrand_res53Function · 0.85

Tested by

no test coverage detected