pgregory.net/rand@v1.0.3-0.20230808192358-a0b8ce02f4da/rand_export_test.go (about) 1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE-go file. 4 5 package rand 6 7 func Int31nForTest(r *Rand, n int32) int32 { 8 return r.Int31n(n) 9 } 10 11 func GetNormalDistributionParameters() (float64, [256]uint64, [256]float64, [256]float64) { 12 return rn, kn, wn, fn 13 } 14 15 func GetExponentialDistributionParameters() (float64, [256]uint64, [256]float64, [256]float64) { 16 return re, ke, we, fe 17 } 18 19 var ShuffleSliceGeneric func(*Rand, []int)