Chance is a random generator in Go
go get -u github.com/nasermirzaei89/chance
package main
import (
"fmt"
"time"
"github.com/nasermirzaei89/chance"
)
func main() {
ch := chance.New(chance.SetSeed(time.Now().UnixNano()))
fmt.Println(ch.Bool())
fmt.Println(ch.String())
fmt.Println(ch.Int())
fmt.Println(ch.Byte())
fmt.Println(ch.Rune())
}
https://godoc.org/github.com/nasermirzaei89/chance