I am reading the classic "Hardness vs Randomness" by Nisan and Wigderson. Let $B=\{0,1\}$, and fix a function $l\colon \mathbb{N} \to \mathbb{N}$. They define a family of functions $G = \{G_n : B^{l(n)} \to B^n\}$ to be pseudorandom in case for every circuit of size $n$ we have
$(*) \ \ | P(C(x) = 1) - P(C(G(y))=1) | < 1/n$
(where $x \in B^{n},y \in B^{l(n)}$ are uniform random variables).
I understand that I am to think of $x$ and $y$ as random variables, and that I want to compare the distance between $x$ and $G(y)$ as random variables. I get the intuition that circuits are being used as sort of "tests" in to see if $G$ can be "figured out." What I am really struggling with is why the condition $(*)$ is the right one. Does anyone have any advice on how to think of this definition?