https://en.wikipedia.org/wiki/Inverse_transform_sampling
Activity