コード例 #1
0
ファイル: random.go プロジェクト: haskelladdict/gsl
// Max returns the largest value that the rng underlying RngState
// can handle
func (s *RngState) Max() uint64 {
	return uint64(C.gsl_rng_max(s.state))
}
コード例 #2
0
ファイル: rng.go プロジェクト: postfix/gsl-1
func Max(r *GslRng) int {
	return int(C.gsl_rng_max((*C.gsl_rng)(unsafe.Pointer(r.Ptr()))))
}