Fixed quick random generator bug

When all elements were visited, the stratedgy should change
to picking random elements to reach.
Documentation