Skip to content
Testing random number generation in C++.
C++ R C CMake
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
figures
.gitignore
CMakeLists.txt
LCG.h
LICENSE.txt
MersenneTwister.h
MersenneTwisterCpp.h
PCG.h
README.md
SplitMix64.h
Xoroshiro128plus.h
Xoshiro256plus.h
main.cpp
plotting.R
random_convert.h

README.md

Testing random number generation in C++

See the blog post accompanying this code. Tests the performance of several PRNGs, including

  • Xoshiro256+
  • Xoroshiro128+
  • Linear congruential generator (LCG)
  • Permuted congruential generator (PCG)
  • SplitMix64
  • Mersenne Twister (MT)
  • C++ base minstd
  • C++ base rand()
  • C++ base mt

Installation and usage

Use the included cmake file to compile.

>> cmake .
>> make
>> ./rng_testing

Contact

Email: thompsonsed@gmail.com

License: MIT

You can’t perform that action at this time.