GeNN  2.2.3
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::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::stdRG ( unsigned int  seed)

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

The seed is an arbitrary unsigned int

stdRG::~stdRG ( )
inline

Member Function Documentation

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[

unsigned long stdRG::nlong ( )

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