github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/math/rand/exp.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 // ExpFloat64は、レートパラメータ(ラムダ)が1で、平均が1/ラムダ(1)である指数分布に従う、 8 // 範囲(0, +[math.MaxFloat64]]の指数分布のfloat64を返します。 9 // 異なるレートパラメータの分布を生成するには、呼び出し元は出力を調整できます: 10 // 11 // sample = ExpFloat64() / desiredRateParameter 12 func (r *Rand) ExpFloat64() float64