Using MATLAB, you have to start with a uniform distribution between (0,1). You need to generate the following sequences of random variables:
1.Rayleigh distributed random variable. (a=0, b=1).
2.Exponentially R.V. (a=0, b=1)
3.Gaussian R.V. (a=0, (σX)=2)
At least, give me a MATLAB code of the first one.
I tired many time to solve it using this equation: 
but it didn’t work with me.
Here are the formulas, it’s easy to implement them in Matlab:
The first two methods are based on Inverse Transform Sampling. In the third case, the CDF cannot be inverted analytically, so ITS doesn’t work, and special techniques are needed.
EDIT
Example (Rayleigh):