Estimation of the diffusion coefficient for diffusion processes: random sampling