Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Rand in Gorays which was not getting inlined
type randFn func() float64
func makeRand(seed uint32) randFn {
return func() float64 {
seed += seed
seed ^= 1
if int32(seed) < 0 {
seed ^= 0x88888eef
return float64(seed%95) / float64(95)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.