In a Generative Adversarial Network (GAN), there are two multi-layer perceptrons. One is the generator network and another is a discriminator network.
The input for the generator network is a noise vector $z$. The input for a discriminator network is either a generated sample $G(z)$ i.e., the output of a generator network or a training sample $x$ for a training dataset.
My doubt is regarding the input of the generator. The noise vector is generally sampled from the standard normal distribution.
$$z \sim \mathcal{N(0, 1)}$$
Although I am not sure, I think : since the values in the normal distribution vary, the output of the generator can vary accordingly.
But some of the research papers say that the noise vector can also be sampled from a uniform distribution i.e., $z \sim \mathcal{U(a, b)}$ for $a<b$.
$$ U(x) = \begin{cases} \dfrac{1}{b-a} & x\in [a, b] \\ 0 & x\not\in [a, b] \\ \end{cases} $$
It is clear that uniform distribution does not vary like normal distribution and takes only two possible values, hence all samples have equal probability in the given range. Then how can it contribute to the diversity of the output of the generator network?