Categorygithub.com/hnakamur/randutil/v3
package
3.0.1
Repository: https://github.com/hnakamur/randutil.git
Documentation: pkg.go.dev

# README

[DEPRECATED] Use golang.org/x/exp/rand#PCGSource and gonum.org/v1/gonum/stat/distuv instead.

randutil GoDoc

This is a Go package for providing some utilities for random.

This Package randutil provides a utility function to get non-negative pesudo-random int using math/rand or crypto/rand.

This package also provides Chooser which chooses an item from choices. Each choice has a weight which affects possibility for it to be choosed.

License

MIT