simulate_pdf

Randomly Sample a data point from a PDF


There are n balls present in a container. 40% of them are black coloured, 35% of them are white coloured and the rest are blue coloured balls. Write a python program to draw a ball from the given container. Assume that balls are drawn with replacement.