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.