I have the PDF f(x)= ( (0.35^2)/ 1.35 ) * (1 + y) * exp(-0.35 * y) and I want to generate data, so I used the rejection method and my code is:
g=function(x){ exp(