Source file src/math/rand/export_test.go

     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 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, [128]uint32, [128]float32, [128]float32) {
    12  	return rn, kn, wn, fn
    13  }
    14  
    15  func GetExponentialDistributionParameters() (float64, [256]uint32, [256]float32, [256]float32) {
    16  	return re, ke, we, fe
    17  }
    18  

View as plain text