NEURON
Rand.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
RNG.h
"
4
#include "
Random.h
"
5
6
struct
Object
;
7
8
/* type_:
9
* 0: unused
10
* 1: unused
11
* 2: MCellRan4
12
* 3: unused
13
* 4: Random123
14
*/
15
class
Rand
{
16
public
:
17
Rand
(
unsigned
long
seed = 0,
int
size = 55,
Object
* obj =
nullptr
);
18
~Rand
();
19
RNG
*
gen
;
20
Random
*
rand
;
21
int
type_
;
// can do special things with some kinds of RNG
22
// double* looks like random variable that gets changed on every fadvance
23
Object
*
obj_
;
24
};
RNG.h
Random.h
RNG
Definition:
RNG.h:5
Rand
Definition:
Rand.hpp:15
Rand::~Rand
~Rand()
Definition:
Rand.cpp:14
Rand::rand
Random * rand
Definition:
Rand.hpp:20
Rand::type_
int type_
Definition:
Rand.hpp:21
Rand::obj_
Object * obj_
Definition:
Rand.hpp:23
Rand::Rand
Rand(unsigned long seed=0, int size=55, Object *obj=nullptr)
Definition:
Rand.cpp:6
Rand::gen
RNG * gen
Definition:
Rand.hpp:19
Random
Definition:
Random.h:24
Object
Definition:
hocdec.h:173
src
gnu
Rand.hpp