int x,y; if (rand(0,1) == 0) { x = 1; y = 3; } else { x = 2; y = 1; }