Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Random Class Reference

#include <unittest.h>

Public Member Functions

 Random (unsigned seed=0)
 
unsigned operator() ()
 

Detailed Description

Definition at line 127 of file unittest.h.

Constructor & Destructor Documentation

◆ Random()

Random::Random ( unsigned seed = 0)
inline

Definition at line 129 of file unittest.h.

129: mSeed(seed) {}

Member Function Documentation

◆ operator()()

unsigned Random::operator() ( )
inline

Definition at line 131 of file unittest.h.

131 {
132 mSeed = 214013 * mSeed + 2531011;
133 return mSeed;
134 }

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