A tiny library to select a random element from a weighted list