StuBS
Random Class Reference

#include <random.h>

Public Member Functions

 Random (uint32_t seed)
 Constructor. More...
 
uint32_t number ()
 Get the next (pseudo)random number. More...
 

Detailed Description

Mersenne Twister (32 bit pseudorandom number generator)

See also
Wikipedia

Constructor & Destructor Documentation

◆ Random()

Random::Random ( uint32_t  seed)
explicit

Constructor.

Parameters
seedinitial value (seed) for the pseudorandom number generator.

Member Function Documentation

◆ number()

uint32_t Random::number ( )

Get the next (pseudo)random number.

Returns
some number

The documentation for this class was generated from the following files: