Skip to content
Snippets Groups Projects
Commit 4abee179 authored by Tom Polakovic's avatar Tom Polakovic
Browse files

Merge branch 'master' into 'master'

RNG seed as environmental variable

See merge request !3
parents 79438db4 52783599
Branches
Tags
1 merge request!3RNG seed as environmental variable
......@@ -13,7 +13,7 @@ void forward_ions(){
WriterAscii hepmc_output("data/forward_ions.hepmc");
int events_parsed = 0;
GenEvent evt(Units::GEV, Units::MM);
std::mt19937 gen(1337);
std::mt19937 gen( std::stoi(std::getenv("SEED")) );
std::uniform_real_distribution<double> phi_distr(0,6.2831853072);
std::uniform_real_distribution<double> theta_distr(0,0.01745329252);
......
export SEED="1337"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment