Belle II Software  release-08-01-10
TRandomWrapper Struct Reference

Wrap TRandom to be useable as a uniform random number generator with STL algorithms like std::shuffle. More...

#include <TRandomWrapper.h>

Public Types

typedef unsigned int result_type
 Define the result type to be a normal unsigned int.
 

Public Member Functions

result_type operator() ()
 Return a random value in the range [min(), max()].
 

Static Public Member Functions

static constexpr result_type min ()
 Minimum value returned by the random number generator.
 
static constexpr result_type max ()
 Maximum value returned by the random number generator.
 

Detailed Description

Wrap TRandom to be useable as a uniform random number generator with STL algorithms like std::shuffle.

Definition at line 20 of file TRandomWrapper.h.


The documentation for this struct was generated from the following file: