github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/math/rand/v2/normal.go (about) 1 // Copyright 2009 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 // NormFloat64は、標準正規分布(平均 = 0、標準偏差 = 1)に従う 8 // 範囲[-math.MaxFloat64, +math.MaxFloat64]の正規分布のfloat64を返します。 9 // 異なる正規分布を生成するために、呼び出し元は出力を調整できます: 10 // 11 // sample = NormFloat64() * desiredStdDev + desiredMean 12 func (r *Rand) NormFloat64() float64