title: How to produce the following random variables?
body: <p>Using MATLAB, you have to start with a uniform distribution between (0,1). You need to generate the following sequences of random variables:</p>
  
  <p>1.Rayleigh distributed random variable. (a=0, b=1).</p>
  
  <p>2.Exponentially R.V. (a=0, b=1)</p>
  
  <p>3.Gaussian R.V. (a=0, (σX)=2)</p>
  
  <hr>
  
  <p>At least, give me a MATLAB code of the first one.</p>
  
  <p>I tired many time to solve it using this equation: <img src="https://i.stack.imgur.com/M3bOy.png" alt="enter image description here"></p>
  
  <p>but it didn't work with me.</p>