I'm trying to run a Monte Carlo type simulation. I have two different probability densities, one for the speed of the objects, Pv, and one for the angle, Pa. Both are given by complicated distributions that correspond to the physical system I am trying to model.
How would I go about generating random speeds and angles given these two distributions?
All of the rand based functions seem to pull random values from a set normalized distribution, which would not match my distribution...
Pv is a function of velocity,v, that goes as c(v^2)exp(-v/a)exp(-b/v) Pa is a function of angle, a, that goes as cos(a)
Any help would be greatly appreciated. I feel like I'm probably missing something pretty easy here.