Documentation ¶ Index ¶ Variables type Random func New(r *rand.Rand) *Random func (r Random) Alpha(n int) string func (r Random) AlphaNum(n int) string func (r Random) Ascii(n int) string func (r Random) Float(min float64, max float64) float64 func (r Random) Intn(min, max int) int func (r Random) Numeric(n int) string Constants ¶ This section is empty. Variables ¶ View Source var DefaultRandom = rand.New(rand.NewSource(time.Now().UnixNano())) Functions ¶ This section is empty. Types ¶ type Random ¶ type Random struct { Random *rand.Rand } func New ¶ func New(r *rand.Rand) *Random func (Random) Alpha ¶ func (r Random) Alpha(n int) string func (Random) AlphaNum ¶ func (r Random) AlphaNum(n int) string func (Random) Ascii ¶ func (r Random) Ascii(n int) string func (Random) Float ¶ func (r Random) Float(min float64, max float64) float64 func (Random) Intn ¶ func (r Random) Intn(min, max int) int func (Random) Numeric ¶ func (r Random) Numeric(n int) string Source Files ¶ View all Source files random.go Click to show internal directories. Click to hide internal directories.