loop for random insertion