for(int i = 0; i < 6; i++) { moo_cow[i] = 0; offsets[i] = (int)(Math.random() * 5D - 2D); }