Originally published: 2010-08-19 08:40:37
Last updated: 2010-08-19 08:40:38
Author: Carlos Valiente
This function returns a random element from a sequence. The probability for each element in the sequence to be selected can be weighted by a user-provided callable