The Distribution Functions of Random Variables in Arithmetic Domains Modulo a