Hey mous99.

Are you aware of the transformation theorems in probability? Also are you are aware of the uniform random variable theorems regarding inverse distributions?

Transformations of Variables

Inverse transform sampling - Wikipedia, the free encyclopedia