issue 5514
Merge pull request #1167 from andralex/5514

Fix Issue 5514 - Erroneous documentation and lacking randomization for topN