LeMonADE-project / LeMonADE

Library for Monte Carlo Simulation applying the Bond Fluctuation Model
Other
3 stars 11 forks source link

Random number generator #35

Open hrabbel opened 8 years ago

hrabbel commented 8 years ago

Should we remove the implementation of r250? RNGs are implemented in newer c++ standards.

MartinWenge commented 8 years ago

I would also recommend to use the library. Here we could also adopt the distribution engines to get rid of using the %/+/- operators to create random number in a specific range. This could look like std::mt19937 rng_mt; std::uniform_int_distribution<int> direction_distribution(1,6); int move_dir = direction_distribution(rng_mt); Of cause, this should be included to RandomNumberGenerator.h to use it via the interfaces already implemented.