ENH: smarter random index selection