How does on make a nonuniform light source at the center

I was wondering if anyone has any idea of creating a script running photons or electrons from the center position with non-uniform distribution direction. one can read a data file in terms of theta and phi


theta phi uniform
0 20 1
0 40 0.9
20 20 1.1


thanks in adanve


I don’t understand your question and given the amount of answers I’m probably not alone. There are plenty of examples in this forum on how to read text files, if this is what you’re looking for. If you’re looking for something regarding math then please be more specific.

Cheers, Axel.