A Go library to randomly select items from a weighted array.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
stairs.go
stairs.svg
stairs_test.go

README.md

Stairs

Stairs is a utility to randomly select items from a weighted array quickly and without high memory usage by creating continuous distribution functions to select from.

To install, simply go get github.com/snyderks/stairs and import github.com/snyderks/stairs to use in your project.

See stairs_test.go for basic usage.