Пример #1
0
func Flat(r *rng.GslRng, a float64, b float64) float64 {
	return float64(C.gsl_ran_flat((*C.gsl_rng)(unsafe.Pointer(r.Ptr())), C.double(a), C.double(b)))
}
Пример #2
0
// Flat returns a random variate from the flat (uniform) distribution from a to b.
func Flat(rng RngState, a, b float64) float64 {
	return float64(C.gsl_ran_flat(rng.state, C.double(a), C.double(b)))
}