Lets say I have a known probability distribution. It could be power-law distribution or a Gaussian distribution for example. If I know the necessary parameters of the distribution, then how do I explicitly sample data points from this known distribution?
I realized that I have so far fitted data into probability distributions but I have never sampled data from other probability distributions other than the uniform distribution which is trivial to do.
How do I explicitly code this e.g. in Matlab? Could I have an easy example?