pcg
pcg copied to clipboard
Go implementation of Melissa O'Neill's excellent PCG pseudorandom number generator
This adds a go.mod file for better support managing dependencies in [Go with modules](https://go.dev/blog/using-go-modules). All of the cool kids started doing this with the preliminary support in Go v1.11 and...
Hi Micheal, Great package, I'm both new to go, and the challenges of RNG, and I was wondering if you could provide more insight into how to seed this correctly....
License
Can you please add a license to your repository? I need to fork it to make the RNGs serializable and I cannot do so legally unless it has been licensed...
$ go test -bench BenchmarkBounded32 goos: darwin goarch: amd64 pkg: github.com/lemire/pcg BenchmarkBounded32-4 200000000 7.85 ns/op BenchmarkBounded32Fast-4 300000000 4.79 ns/op PASS ok github.com/lemire/pcg 4.323s