Example #1
0
// Name returns the name of the random number generator or
// a rng type
func (s *RngState) Name() string {
	return C.GoString(C.gsl_rng_name(s.state))
}
Example #2
0
File: rng.go Project: postfix/gsl-1
func Name(r *GslRng) string {
	return C.GoString(C.gsl_rng_name((*C.gsl_rng)(unsafe.Pointer(r.Ptr()))))
}