Documentation ¶
Overview ¶
Package splitmix64 implements the SplitMix64 random number generator.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicSource ¶
type AtomicSource uint64
An AtomicSource is a concurrency-safe SplitMix64 random number generator.
All methods on an AtomicSource may safely be called concurrently by multiple goroutines.
func (*AtomicSource) Int63 ¶
func (s *AtomicSource) Int63() int64
Int63 returns a 63-bit random number.
func (*AtomicSource) Uint64 ¶
func (s *AtomicSource) Uint64() uint64
Uint64Atomic returns a 64-bit random number. It may be safely called by multiple goroutines concurrently.
Click to show internal directories.
Click to hide internal directories.