>>416
rand_data[i]=i;
↓
rand_data[i]=i+1;