SUNphi
1.0
|
#include <TrueRandomGenerator.hpp>
Public Types | |
using | ResultType = std::random_device::result_type |
Type returned. | |
Public Member Functions | |
TrueRandomGenerator (int returningRank=Mpi::MASTER_RANK) | |
Creates specifying the rank to be used for returning. | |
auto | operator() () |
Returns the inner generated value. More... | |
Private Attributes | |
int | returningRank |
Rank of which the result is returning. | |
Class which enables true random numbers
The random numbers are always generated on all nodes, but only the value on the given node is returned
Definition at line 23 of file TrueRandomGenerator.hpp.
|
inline |
Returns the inner generated value.
Draw the value on every node
Definition at line 43 of file TrueRandomGenerator.hpp.