Documentation
¶
Index ¶
- func ExpFloat64() float64
- func ExpFloat64LF() float64
- func Float32() float32
- func Float32LF() float32
- func Float64() float64
- func Float64LF() float64
- func Int() int
- func Int31() int32
- func Int31LF() int32
- func Int31n(n int32) int32
- func Int31nLF(n int32) int32
- func Int63() int64
- func Int63LF() int64
- func Int63n(n int64) int64
- func Int63nLF(n int64) int64
- func IntLF() int
- func Intn(n int) int
- func IntnLF(n int) int
- func NormFloat64() float64
- func NormFloat64LF() float64
- func Perm(n int) []int
- func PermLF(n int) []int
- func Read(p []byte) (int, error)
- func ReadLF(p []byte) (int, error)
- func Seed(seed int64)
- func SeedLF(seed int64)
- func Shuffle(n int, swap func(i, j int))
- func ShuffleLF(n int, swap func(i, j int))
- func Uint32() uint32
- func Uint32LF() uint32
- func Uint64() uint64
- func Uint64LF() uint64
- type LockFree
- func (l LockFree) ExpFloat64() (r float64)
- func (l LockFree) Float32() (r float32)
- func (l LockFree) Float64() (r float64)
- func (l LockFree) Int() (r int)
- func (l LockFree) Int31() (r int32)
- func (l LockFree) Int31n(n int32) (r int32)
- func (l LockFree) Int63() (r int64)
- func (l LockFree) Int63n(n int64) (r int64)
- func (l LockFree) Intn(n int) (r int)
- func (l LockFree) NormFloat64() (r float64)
- func (l LockFree) Perm(n int) (r []int)
- func (l LockFree) Read(p []byte) (n int, err error)
- func (l LockFree) Seed(seed int64)
- func (l LockFree) Shuffle(n int, swap func(i, j int))
- func (l LockFree) Uint32() (r uint32)
- func (l LockFree) Uint64() (r uint64)
- type Locked
- func (l Locked) ExpFloat64() float64
- func (l Locked) Float32() float32
- func (l Locked) Float64() float64
- func (l Locked) Int() int
- func (l Locked) Int31() int32
- func (l Locked) Int31n(n int32) int32
- func (l Locked) Int63() int64
- func (l Locked) Int63n(n int64) int64
- func (l Locked) Intn(n int) int
- func (l Locked) NormFloat64() float64
- func (l Locked) Perm(n int) []int
- func (l Locked) Read(p []byte) (int, error)
- func (l Locked) Seed(seed int64)
- func (l Locked) Shuffle(n int, swap func(i, j int))
- func (l Locked) Uint32() uint32
- func (l Locked) Uint64() uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpFloat64 ¶
func ExpFloat64() float64
func ExpFloat64LF ¶
func ExpFloat64LF() float64
func NormFloat64 ¶
func NormFloat64() float64
func NormFloat64LF ¶
func NormFloat64LF() float64
Types ¶
type LockFree ¶
type LockFree []*lockFreeSource
LockFree can only be used if GOMAXPROCS isn't adjusted at runtime.
func NewLockFree ¶
func NewLockFree() LockFree
func (LockFree) ExpFloat64 ¶
func (LockFree) NormFloat64 ¶
type Locked ¶
type Locked []*lockedSource
Locked is p-sharded, can be used safely in situations where GOMAXPROCS is adjusted at runtime.
func (Locked) ExpFloat64 ¶
func (Locked) NormFloat64 ¶
Click to show internal directories.
Click to hide internal directories.