Documentation ¶
Index ¶
- Variables
- func GetCounter() int64
- type ConcurrentRand
- func (src *ConcurrentRand) Int31() int32
- func (src *ConcurrentRand) Int31n(n int32) int32
- func (src *ConcurrentRand) Int63() int64
- func (src *ConcurrentRand) Int63n(n int64) int64
- func (src *ConcurrentRand) Intn(n int) int
- func (src *ConcurrentRand) Perm(n int) []int
- func (src *ConcurrentRand) Uint64() uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var CLOCK_MONOTONIC = 1
Functions ¶
func GetCounter ¶
func GetCounter() int64
Types ¶
type ConcurrentRand ¶
type ConcurrentRand struct {
// contains filtered or unexported fields
}
func New ¶
func New(seeds ...int64) *ConcurrentRand
func (*ConcurrentRand) Int31 ¶
func (src *ConcurrentRand) Int31() int32
func (*ConcurrentRand) Int31n ¶
func (src *ConcurrentRand) Int31n(n int32) int32
func (*ConcurrentRand) Int63 ¶
func (src *ConcurrentRand) Int63() int64
func (*ConcurrentRand) Int63n ¶
func (src *ConcurrentRand) Int63n(n int64) int64
func (*ConcurrentRand) Intn ¶
func (src *ConcurrentRand) Intn(n int) int
func (*ConcurrentRand) Perm ¶
func (src *ConcurrentRand) Perm(n int) []int
func (*ConcurrentRand) Uint64 ¶
func (src *ConcurrentRand) Uint64() uint64
Click to show internal directories.
Click to hide internal directories.