Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rand ¶
Rand is a rand with more useful methods
func (*Rand) Int32Within ¶
Int32Within return a random int32 value within range [0, bound) if bound larger than 0, Panics with an error if bound is less than or equals 0.
func (*Rand) Int64Within ¶
Int64Within return a random int64 value within range [0, bound). If bound is less than or equals with 0, panics with an error
func (*Rand) IntBetween ¶
IntBetween return a random value within range [low, high) if low less than high, The func panics an error if low is larger than or equals high, or high-low overflows int.
Click to show internal directories.
Click to hide internal directories.