go-discreterand icon indicating copy to clipboard operation
go-discreterand copied to clipboard

Return random values sampled from a discrete distribution

This package is an implementation of Vose's alias method for choosing elements from a discrete distribution.

Copyright (c) 2013 Damian Gryski [email protected] Licensed under the MIT license.

For library documentation, please see http://godoc.org/github.com/dgryski/go-discreterand