+ 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

26th Mar 2018, 9:10 PM
Guillaume Vero
Guillaume Vero - avatar
1 ответ
+ 6
You can employ numpy to do that for you. Check it out: https://code.sololearn.com/cXH0GH3bf4RZ/?ref=app
26th Mar 2018, 10:09 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar