Documentation
¶
Index ¶
- func CreateBasicMathRnum() *rand.Rand
- func CreateMathRnum(source int64) *rand.Rand
- func CreateMultipleUniqueMathRnum(num int) []*rand.Rand
- func CreateUniqueMathRnum() *rand.Rand
- func GetPosOrNegOne(rnum *rand.Rand) int
- func NormalFloat64(seed int64) float64
- func NormalInt32Range(seed int64, min, max int32) int32
- func NormalUint32(z uint32) uint32
- func UniformFloat64(seed int64) float64
- func UniformInt32Range(seed int64, min, max int32) int32
- func UniformUint32(z uint32) uint32
- type WeightedObj
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBasicMathRnum ¶
func CreateMathRnum ¶
func CreateUniqueMathRnum ¶
func GetPosOrNegOne ¶
func NormalFloat64 ¶
func NormalInt32Range ¶
func NormalUint32 ¶
func UniformFloat64 ¶
func UniformInt32Range ¶
func UniformUint32 ¶
Types ¶
type WeightedObj ¶
type WeightedObj struct { Weight int Object interface{} }
func WeightedChoice ¶
func WeightedChoice(choices []WeightedObj, rnum *rand.Rand) (WeightedObj, error)
Click to show internal directories.
Click to hide internal directories.