Given a prime $p$ and $m \in Z_p^*$.
Assume we draw $a \stackrel{u}{\in} Z_p^*$ uniformly at random.
Will $a \cdot m \bmod p$ be distributed uniformly over $Z_p^*$?
Given a prime $p$ and $m \in Z_p^*$.
Assume we draw $a \stackrel{u}{\in} Z_p^*$ uniformly at random.
Will $a \cdot m \bmod p$ be distributed uniformly over $Z_p^*$?
Copyright © 2021 JogjaFile Inc.
Yes, the $am$ will be distributed uniformly modulo $p$. For any $k \in \mathbb Z^*_p$, the chance of getting $k$ is $\frac1 {p-1}$, because it happens for only one value of $a$, namely when $a \equiv m^{-1}k \pmod p$.
Note that if $p$ is not prime, then the same result holds only when $\gcd(m,p)=1$.