We developed a fully ab initio scheme based on linear response time-dependent density functional theory to predict the impact parameter averaged quantity named the random electronic stopping power (RESP) of materials without any empirical fitting. Our developments have been done within the open-source ab initio code named ABINIT, where two approximations are now available: the Random- Phase Approximation (RPA) and the Adiabatic Local Density Approximation (ALDA).