A random number generator which outputs a unique 32-bit integer each time it's called.
C++ CMake
Latest commit 8ff8607 Jan 26, 2016 @preshing Fix #1: Add license
Failed to load latest commit information.
.gitignore Initial commit Dec 24, 2012
CMakeLists.txt Initial commit Dec 24, 2012
LICENSE Fix #1: Add license Jan 26, 2016
README.md Fix #1: Add license Jan 26, 2016
main.cpp Initial commit Dec 24, 2012
randomsequence.h Renamed shuffle to permute Dec 31, 2012

README.md

This C++ project implements a random number generator which outputs a unique 32-bit integer each time it's called, and verifies that the first 232 integers returns really are unique. The algorithm is described in the blog post How to Generate a Sequence of Unique Random Integers.

CMake is required to build.

To run the test on Windows:

  • Open a command prompt and navigate to the folder containing CMakeLists.txt.
  • mkdir build
  • cd build
  • cmake .. (You can optionally specify a toolchain using CMake's -G argument.)
  • cmake --build . --config Release
  • ctest .

LICENSE

Released to the public domain.