games202-hw/hw2/prt/ext/pcg32
ink-soul f449127608 init commit ready for homework framwork 2023-06-16 09:48:28 +08:00
..
Makefile init commit ready for homework framwork 2023-06-16 09:48:28 +08:00
README.md init commit ready for homework framwork 2023-06-16 09:48:28 +08:00
pcg32-demo.cpp init commit ready for homework framwork 2023-06-16 09:48:28 +08:00
pcg32-demo.out init commit ready for homework framwork 2023-06-16 09:48:28 +08:00
pcg32.h init commit ready for homework framwork 2023-06-16 09:48:28 +08:00
pcg32_8.h init commit ready for homework framwork 2023-06-16 09:48:28 +08:00

README.md

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