GeNN  4.0.0
GPU enhanced Neuronal Networks (GeNN)
stdRG Class Reference

#include <randomGen.h>

Public Member Functions

 stdRG ()
 Constructor of the standard random number generator class without explicit seed. More...
 
 stdRG (unsigned int)
 Constructor of the standard random number generator class with explicit seed. More...
 
 ~stdRG ()
 
double n ()
 Method to generate a uniform random number. More...
 
unsigned long nlong ()
 

Constructor & Destructor Documentation

◆ stdRG() [1/2]

stdRG::stdRG ( )
explicit

Constructor of the standard random number generator class without explicit seed.

The seed is taken from teh internal clock of the computer.

◆ stdRG() [2/2]

stdRG::stdRG ( unsigned int  seed)

Constructor of the standard random number generator class with explicit seed.

The seed is an arbitrary unsigned int

◆ ~stdRG()

stdRG::~stdRG ( )
inline

Member Function Documentation

◆ n()

double stdRG::n ( )

Method to generate a uniform random number.

The moethod is a wrapper for the C function rand() and returns a pseudo random number in the interval [0,1[

◆ nlong()

unsigned long stdRG::nlong ( )

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