-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrandom.cpp
More file actions
21 lines (19 loc) · 745 Bytes
/
Copy pathrandom.cpp
File metadata and controls
21 lines (19 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "random.hpp"
unsigned R::seed = 345;
std::default_random_engine R::generator (R::seed);
double R::runif () { return distRealUniform(R::generator); }
int R::iunif () { return distIntUniform(R::generator); }
int R::gray () { return distGray(R::generator); }
int R::x () { return distX(R::generator); }
int R::y () { return distY(R::generator); }
int R::thickness () {
// return distThickness2(R::generator);
// return distThickness(R::generator);
return 1;
}
int R::thickness2 () {
return distThickness2(R::generator);
}
int R::mutationAll() { return distMutationAll(R::generator); }
int R::mutationNTree() { return distMutationNTree(R::generator); }
int R::mutationChangeLeaf() { return distMutationChangeLeaf(R::generator); }