Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
A Generator uses a goroutine to populate batches of random numbers. Currently we use a Mersenne twister implementation instead of the default Go implementation (which is fast, but has a much shorter period than MT, and we use a LOT of random draws)
func NewGenerator ¶
NewGenerator is a helper wrapper around NewGeneratorSlice
func NewGeneratorSlice ¶
NewGeneratorSlice starts a new background PRNG based on the given seed slice. If the slice has only one entry, then the MT generator is initialized with Seed. Otherwise SeedFromSlice is used
func (*Generator) Float64 ¶
Float64 uses the commented, simpler implmentation since we don't have the same support requirements for users
Click to show internal directories.
Click to hide internal directories.