Create randIndex.m