A Weibull random variable is defined by the pdf
![2404_Equation 2.jpg](https://secure.tutorsglobe.com/CMSImages/2404_Equation%202.jpg)
Where a is a parameter and u(x) denotes the unit step. Using the inverse transform method, develop an algorithm for generating a sequence of random numbers having a Weibull distribution.
Using the algorithm just generated with a = 5, generate 500 samples of a Weibull random variable. Plot the histogram and compare with the pdf.