MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/Imath / testRandom

Function testRandom

src/ImathTest/testRandom.cpp:245–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243} // namespace
244
245void
246testRandom ()
247{
248 cout << "Testing random number generators" << endl;
249
250 cout << "erand48(), nrand48()" << endl;
251 testErand48 ();
252
253 cout << "drand48(), lrand48()" << endl;
254 testDrand48 ();
255
256 cout << "Rand32" << endl;
257 testGenerator<IMATH_INTERNAL_NAMESPACE::Rand32> ();
258
259 cout << "Rand48" << endl;
260 testGenerator<IMATH_INTERNAL_NAMESPACE::Rand48> ();
261
262 cout << "Rand48" << endl;
263 testGenerator<IMATH_INTERNAL_NAMESPACE::Rand48> ();
264
265
266 cout << "solidSphereRand()" << endl;
267 testSolidSphere<IMATH_INTERNAL_NAMESPACE::Rand32> ();
268
269 cout << "hollowSphereRand()" << endl;
270 testHollowSphere<IMATH_INTERNAL_NAMESPACE::Rand32> ();
271
272 cout << "ok\n" << endl;
273}

Callers

nothing calls this directly

Calls 2

testErand48Function · 0.85
testDrand48Function · 0.85

Tested by

no test coverage detected