Random pixels followed by a grid for test program