Generate random numbers using SDE of the Legendre process

63 Views Asked by At

Assume I know the SDE of a stochastic process as:

$$ d\theta(t) = \frac{\sigma^2 cot(\theta(t))}{2 }dt + \sigma dB(t). $$ What are the steps to generate random angles (random walks) corresponding to the SDE? (assume I can generate uniformly distributed random numbers within a specified range, such as [-1,1])