puppetlabs/clj-kitchensink — pull request #50 by aperiodic (2014-12-03 00:57:15+00:00)
Title: Add rand-weighted-selection.

Add a function that, given interleaving weights and values, where the
weights sum to 1, randomly selects from among the values according to
the weights.