Shinmera / random-state

A collection of portable random generators for Common Lisp
http://shinmera.github.io/random-state/
zlib License
27 stars 9 forks source link

fix pcg so it matches reference #38

Closed 3b closed 10 months ago

3b commented 10 months ago

Random points in ±1.0 had obvious banding (same code looked fine with other generators).

With fix, looks better and matches reference implementation in https://github.com/imneme/pcg-c-basic/blob/master/pcg_basic.c (at least for the 32 values of the 1 seed i tried).

Shinmera commented 10 months ago

Thanks!