Add support for a choose_weighted distribution tuple of the form ("choose_weighted", listA, listB) where listA and listB are of the same length, A contains the items to select from and B the corresponding probabilities. listB must contain a valid set of probabilities in the range [0, 1] that sum to 1. Addresses #143.
Add support for a
choose_weighted
distribution tuple of the form("choose_weighted", listA, listB)
wherelistA
andlistB
are of the same length, A contains the items to select from and B the corresponding probabilities.listB
must contain a valid set of probabilities in the range [0, 1] that sum to 1. Addresses #143.