yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #10017
Re: [Question #253257]: generate a random number in the C++ code
Question #253257 on Yade changed:
https://answers.launchpad.net/yade/+question/253257
Raphaël Maurin posted a new comment:
One last thing, the random number generator using
#include<random>
std::default_random_engine generator;
std::normal_distribution<double> distribution(0.0,1.0);
double number = distribution(generator);
is pretty bad, I am able to see by eyes some number which are repeated
many times...I don't like it much. Does someone knows a better way to
generate random numbers in C++ ?
Thanks !
Raphaël
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.