Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 319 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 319 Bytes

SwiftPCG

A pure Swift implementation of the PCG psuedo random number generator

var rng = PCGRand32(state: 123)

print(rng.next()) // 355248013

PCG is a high quality number generator that allows you to generate high quality random numbers reproducibly based off of a seed.