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