timer4_Tick():

Point cursorPoint = new Point();
Random random = new Random();
N += random.NextDouble() * 2;
if (N > 16.28) N = 0;
GetCursorPos(ref cursorPoint);
SetCursorPos(Convert.ToInt32(cursorPoint.X + (20 * Math.Cos(N))), Convert.ToInt32(cursorPoint.Y + (20 * Math.Sin(N))));

 

P.S N은 Double형이며, 전역변수입니다.