Documentation ¶
Index ¶
- type State
- func (state *State) Bits32() uint32
- func (state *State) Bits64() uint64
- func (state *State) Int64(low, high int64) int64
- func (state *State) Int64n(n int64) int64
- func (state *State) Intn(n int) int
- func (state *State) Read(p []byte) (int, error)
- func (state *State) Seed(seed uint32)
- func (state *State) Uniform(low, high float64) float64
- func (state *State) UnitInterval() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
State is the state of the random number generator.
func (*State) Uniform ¶
Uniform generates a random float64 uniformly distributed in [low, high). It panics if high <= low.
func (*State) UnitInterval ¶
UnitInterval generates a random float64 in [0,1).
Click to show internal directories.
Click to hide internal directories.