GeNN  2.2.3
GPU enhanced Neuronal Networks (GeNN)
randomGen Class Reference

Class randomGen which implements the ISAAC random number generator for uniformely distributed random numbers. More...

#include <randomGen.h>

Public Member Functions

 randomGen ()
 Constructor for the ISAAC random number generator class without giving explicit seeds. More...
 
 randomGen (unsigned long, unsigned long, unsigned long)
 Constructor for the Gaussian random number generator class when seeds are provided explicitly. More...
 
 ~randomGen ()
 
double n ()
 Method to obtain a random number from a uniform ditribution on [0,1]. More...
 
void srand (unsigned long, unsigned long, unsigned long)
 Function for seeding with fixed seeds. More...
 

Detailed Description

Class randomGen which implements the ISAAC random number generator for uniformely distributed random numbers.

The random number generator initializes with system timea or explicit seeds and returns a random number according to a uniform distribution on [0,1]; making use of the ISAAC random number generator; C++ Implementation by Quinn Tyler Jackson of the RG invented by Bob Jenkins Jr.

Constructor & Destructor Documentation

randomGen::randomGen ( )
explicit

Constructor for the ISAAC random number generator class without giving explicit seeds.

The seeds for random number generation are generated from the internal clock of the computer during execution.

randomGen::randomGen ( unsigned long  seed1,
unsigned long  seed2,
unsigned long  seed3 
)

Constructor for the Gaussian random number generator class when seeds are provided explicitly.

The seeds are three arbitrary unsigned long integers.

randomGen::~randomGen ( )
inline

Member Function Documentation

double randomGen::n ( )

Method to obtain a random number from a uniform ditribution on [0,1].

Function for generating a pseudo random number from a uniform distribution on the interval [0,1].

void randomGen::srand ( unsigned long  seed1,
unsigned long  seed2,
unsigned long  seed3 
)

Function for seeding with fixed seeds.


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