I have to pick a ball from a set of balls. Each ball has a size, so I have a distribution for ball sizes (I assume a number between 0-1).
I want to pick a new ball at each step with the probability associated with its size. I have read about Inverse transform sampling. But I wasn't able to find any numerical example. All I could find were some well known distributions, that are always reversible, however in my example two or more balls can have the same size. I'm not able to understand how to move forward.
Any help is greatly appreciated.