I would like to generate random numbers from a CDF. I have looked at the inverse sampling method but I am struggling to find the inverse of my CDF given that it is a 6th order polynomial.
$F_X \left ({x} \right)= Ax^2-Bx^4 + Cx^6$
Where $A$, $B$ and $C$ are real positive and non-zero. Is there a different method to generate a random number based on this CDF? If so, I would really appreciate any guidance (especially for closed-form solutions).
My "tries": I have learnt about the Box-Mueller but it cannot be applied for this case (correct me if I am wrong). Secondly, I have had a look at rejection sampling but I don't quite understand how to apply it (working on MATLab by the way).
Edit: The region of interest is $0 < x < 80$


solve (3.4675*10^-4)*x^2 -(3.5116*10^-8)*x^4+(8.361*10^-13)*x^6 ==p for x. – JimB Mar 15 '21 at 00:49