I'd like to do a Monte Carlo-simulation of the Compton electron energy distribution. The scattered photon angle is easy to simulate by random numbers, which easily gives the scattered photon energy by the classic hv' = hv/(1 + hv*(1-cos(theta))/511) [keV]. But what about the Compton electrons? I do not want to use tables. I'm stuck with the problem... Can someone enlighten me in how to proceed...?