const rngLen … const rngTap … const rngMax … const rngMask … const int32max … var rngCooked … type rngSource … // seed rng x[n+1] = 48271 * x[n] mod (2**31 - 1) func seedrand(x int32) int32 { … } // Seed uses the provided seed value to initialize the generator to a deterministic state. func (rng *rngSource) Seed(seed int64) { … } // Int63 returns a non-negative pseudo-random 63-bit integer as an int64. func (rng *rngSource) Int63() int64 { … } // Uint64 returns a non-negative pseudo-random 64-bit integer as a uint64. func (rng *rngSource) Uint64() uint64 { … }