Frequency and wavevector dependent diffusion coefficient of electrons from Monte Carlo simulation