I have to create a script that generates pseudo-random numbers with an arbitrary distribution F(t) in [a,b] with F_max being the max value of F in [a,b]. F in this case is the Cauchy function and they suggested we use the ‘Montecarlo’ method but I can’t figure out how.