Autodetect indices when 'indexRandom' is used.