Skip to content

Chance is a random generator in Go

License

Notifications You must be signed in to change notification settings

nasermirzaei89/chance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chance

Chance is a random generator in Go

Build Status Go Report Card Codecov GoDoc GitHub license

Instal

go get -u github.com/nasermirzaei89/chance

Usage

Sample

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())
}

Documentation

https://godoc.org/github.com/nasermirzaei89/chance

About

Chance is a random generator in Go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published