Skip to content

A Go library to randomly select items from a weighted array.

License

Notifications You must be signed in to change notification settings

snyderks/stairs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Go library to randomly select items from a weighted array.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages