Hello! I generated a scaled Beta PDF with parameters a=3, b=3, scaled in the interval [-0.5,0.5] by using the function Scaled_BetaPDF, whose output are the probabilities of each element in the interval. However, I am not sure how to generate one random number from such a distribution.
My code to generate the PDF:
Scaled_BetaPDF(X, 3, 3, -0.5, 0.5)
Then, in order to generate a random number from this distribution, I tried the following codes (obviously wrong):
random(Scaled_BetaPDF(X, 3, 3, -0.5, 0.5))
which gave me the error "Error using random The NAME argument must be a distribution name.".
How can generate random numbers from a PDF that I create with a specific function?