PRNG for non-uniformly distributed values from trigonometric identity

Type : pseudo-random number generator
References : Posted by neolit123 gmail com
Notes :
a method, which generates random numbers in the [-1,+1] range, while having a probability density function with less concentration of values near zero for sin().
you can use an approximation of sin() and/or experiment with such an equation for different distributions. using tan() will accordingly invert the pdf graph i.e. more concentration near zero, but the output range will be also affected.

extended read on similar methods:

Code :