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;
21  int type_; // can do special things with some kinds of RNG
22  // double* looks like random variable that gets changed on every fadvance
24 };
Definition: RNG.h:5
Definition: Rand.hpp:15
~Rand()
Definition: Rand.cpp:14
Random * rand
Definition: Rand.hpp:20
int type_
Definition: Rand.hpp:21
Object * obj_
Definition: Rand.hpp:23
Rand(unsigned long seed=0, int size=55, Object *obj=nullptr)
Definition: Rand.cpp:6
RNG * gen
Definition: Rand.hpp:19
Definition: Random.h:24
Definition: hocdec.h:173