tweaked send_plane_rand_z for clarity and aesthetics