math/rand.Rand.Float64 (method)
9 uses
math/rand (current package)
exp.go#L39: return re - math.Log(r.Float64())
exp.go#L41: if fe[i]+float32(r.Float64())*(fe[i-1]-fe[i]) < float32(math.Exp(-x)) {
normal.go#L50: x = -math.Log(r.Float64()) * (1.0 / rn)
normal.go#L51: y := -math.Log(r.Float64())
normal.go#L61: if fn[i]+float32(r.Float64())*(fn[i-1]-fn[i]) < float32(math.Exp(-.5*x*x)) {
rand.go#L189: func (r *Rand) Float64() float64 {
rand.go#L220: f := float32(r.Float64())
rand.go#L457: func Float64() float64 { return globalRand().Float64() }
zipf.go#L65: r := z.r.Float64() // r on [0,1]
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |