+ 1
[Python] can someone know how to generate random number with a cos^2 distribution?
I must to generate lot of random number but with a cos^2 distribution (many number near to 0) between - PI/2 and PI/2
1 ответ
+ 6
You can employ numpy to do that for you.
Check it out:
https://code.sololearn.com/cXH0GH3bf4RZ/?ref=app