Remove useless usage of yield

* There's no need for generators as we deal with random values
Improve documentation