randomly choose the pixel in k-fold validation