Documentation ¶
Index ¶
- Constants
- Variables
- func Betavariate(alpha, beta float64) float64
- func Choice[T any](a []T) (r T)
- func ChoiceString(a string) byte
- func Do(f func(*r.Rand))
- func ExpFloat64() float64
- func Expovariate(lambd float64) float64
- func Float32() float32
- func Float64() float64
- func Gammavariate(alpha, beta float64) float64
- func Gauss(mu, sigma float64) float64
- func Int() int
- func Int31() int32
- func Int31n(n int32) int32
- func Int31range(from, to int32, _step ...int) int32
- func Int63() int64
- func Int63n(n int64) int64
- func Int63range(from, to int64, _step ...int) int64
- func Intn(n int) int
- func Intrange(from, to int, _step ...int) int
- func Lognormvariate(mu, sigma float64) float64
- func NormFloat64() float64
- func Normalvariate(mu, sigma float64) float64
- func Paretovariate(alpha float64) float64
- func Perm(n int) []int
- func RandBytes(n int) []byte
- func Read(p []byte) (n int, err error)
- func ReadN(p []byte, min, max int) (n int)
- func ReadNU(p []byte, min, max int) (n int)
- func Sample[T any](p []T, n int) []T
- func SampleString(s string, n int) string
- func Seed(seed int64)
- func Shuffle(n int, swap func(i, j int))
- func Triangular(low, high float64, mode ...float64) float64
- func Uint32() uint32
- func Uint64() uint64
- func Uniform32(a, b float32) float32
- func Uniform64(a, b float64) float64
- func Vonmisesvariate(mu, kappa float64) float64
- func Weibullvariate(alpha, beta float64) float64
Constants ¶
View Source
const ( UNLOCK int32 = iota LOCKED )
Variables ¶
View Source
var (
NV_MAGICCONST = 4 * math.Exp(-0.5) / math.Sqrt(2.0)
)
Functions ¶
func Betavariate ¶
func ChoiceString ¶
func ExpFloat64 ¶
func ExpFloat64() float64
func Expovariate ¶
func Gammavariate ¶
func Int31range ¶
func Int63range ¶
func Lognormvariate ¶
func NormFloat64 ¶
func NormFloat64() float64
func Normalvariate ¶
func Paretovariate ¶
func SampleString ¶
func Triangular ¶
func Vonmisesvariate ¶
func Weibullvariate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.