Consider two 1-dim arrays, one with items to select from and one containing the probabilities of drawing the item of the other list.
items = ["a", 2, 5, "h", "hello", 3]
weights = [0.1, 0.1, 0.2, 0.2, 0.1, 0.3]
In Julia, how can one randomly select an item in items
using weights
to weight the probability to drawing a given item?