A Rand utility that wraps math/rand
go get -u github.com/zabawaba99/random
Import the package
import "github.com/zabawaba99/random"
By importing the package, the package will be
seeded with time.Now().Unix()
. You can also specify a seed
by setting the GOSEED
environment variable.
GOSEED=12 go test .
This package exports all the functions that math/rand#Rand exports.
Check the GoDocs for more details
- Fork it
- Create your feature branch (
git checkout -b new-feature
) - Commit your changes (
git commit -am 'Some cool reflection'
) - Push to the branch (
git push origin new-feature
) - Create new Pull Request