[go: up one dir, main page]

Skip to content
/ pcg32 Public

Tiny self-contained C++ version of the PCG32 pseudorandom number generator

Notifications You must be signed in to change notification settings

wjakob/pcg32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pcg32

This is a tiny self-contained C++ implementation of the PCG32 random number based on code by Melissa O'Neill available at http://www.pcg-random.org.

I decided to put together my own version because the official small implementation lacks a C++ interface and various important features (e.g. rewind/difference support, shuffling, floating point sample generation), while while the official C++ version is extremely complex and seems to be intended for research on PRNGs involving the entire PCG family.

The file pcg32_8.h contains a vectorized implementation designed by myself which runs eight PCG32 PRNGs in parallel. Expect to get a ~3-4x speedup when generating single or double precision floats.

Wenzel Jakob June 2016

About

Tiny self-contained C++ version of the PCG32 pseudorandom number generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published