Public Member Functions | |
| SynapticRandomizer (mt19937 *igenerator) | |
| Construct using a shared Mersenne Twister generator. | |
| double | rndU1 () |
| Default operation: Draw a double from U([-1,1]). | |
| double | rndU (double a) |
| Draw a double from U([-a,a]). | |
Protected Attributes | |
| mt19937 * | generator = nullptr |
| SynapticRandomizer::SynapticRandomizer | ( | mt19937 * | igenerator | ) |
Construct using a shared Mersenne Twister generator.
The pointer may be shared within the thread for other purposes, but not among multiple threads. Create one for each thread.
1.6.1