[TEST] Use indexRandom in ShardSizeTests.