g2rand

package module
v0.0.0-...-cff14c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2020 License: Apache-2.0 Imports: 3 Imported by: 43

README

rand

extend golang standard rand package

korean discription

http://kasw.blogspot.kr/2015/02/go.html

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type G2Rand

type G2Rand struct {
	// contains filtered or unexported fields
}

func New

func New() *G2Rand

func NewWithSeed

func NewWithSeed(seed int64) *G2Rand

func (*G2Rand) Float64

func (rnd *G2Rand) Float64() float64

func (*G2Rand) Int63

func (rnd *G2Rand) Int63() int64

func (*G2Rand) IntRange

func (rnd *G2Rand) IntRange(s, e int) int

include s, not include e

func (*G2Rand) Intn

func (rnd *G2Rand) Intn(n int) int

func (*G2Rand) NormFloat64Range

func (rnd *G2Rand) NormFloat64Range(desiredMean, desiredStdDev float64) float64

func (*G2Rand) NormIntRange

func (rnd *G2Rand) NormIntRange(desiredMean, desiredStdDev int) int

func (*G2Rand) Perm

func (rnd *G2Rand) Perm(n int) []int

func (*G2Rand) Read

func (rnd *G2Rand) Read(dst []byte) (int, error)

func (*G2Rand) Shuffle

func (r *G2Rand) Shuffle(n int, swap func(i, j int))

func (*G2Rand) Uint32

func (rnd *G2Rand) Uint32() uint32

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL