A statistical approach for sedimentation inside a microphysical precipitation scheme