|
|
|
|
|
by pfdietz
196 days ago
|
|
> If you wrote a function that takes a PRNG and generates a random object, you already have a function capable of enumerating all objects. More specifically: if you uniformly sample from a space of size N, then in O(N log N) tries you can expect to sample every point in the space. There's a logarithmic cost to this random sampling, but that's not too bad. |
|
The keyword to look up more details is "coupon collector's problem".