| 243 | } // namespace |
| 244 | |
| 245 | void |
| 246 | testRandom () |
| 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 | } |
nothing calls this directly
no test coverage detected