NEURON
Rand.cpp
Go to the documentation of this file.
1 #include "Rand.hpp"
2 
3 #include "NrnRandom123RNG.hpp"
4 #include "Normal.h"
5 
6 Rand::Rand(unsigned long seed, int size, Object* obj) {
7  // printf("Rand\n");
8  gen = new NrnRandom123(seed, size);
9  rand = new Normal(0., 1., gen);
10  type_ = 4;
11  obj_ = obj;
12 }
13 
15  // printf("~Rand\n");
16  delete gen;
17  delete rand;
18 }
19 
Definition: Normal.h:21
~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: hocdec.h:173