Thank you so much sir!

This i have done.

this is giving me information like see below

But i was just curious about theta calculation ?

for that i found something but not able to implement that on the radio-protection example , how they have written theta value according to their object ?

also i thought this could be related to cosine distribution then i read about this with this paper

cosine_distribution.pdf (111.3 KB)

but i got stuck again in the polar angle calculation , so related to this i have one question , if it is related to random number then how should i know about random number values that i can put or is it different thing, am i going wrong with this theta calculation ? is it calculated differently ?

i am really very confused with this.

if i want to calculate for my object then how can i do this ? if i know the dimensions (size) of my object ?

sorry for so many questions but if you can help , it would really grateful and appreciated.

Thanks

Best Regards

Priyanshu