This is broken. The first element of list B has no probability of being selected.