/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.awt.Point;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void rotate_point(Point p)
	{
		// random b value between -0.1 and +0.1 radians. You need to adjust these values.
		double b = -0.1 + 0.2 * (new Random().nextDouble()); 
		double cosb = Math.cos(b), sinb = Math.sin(b);
		
		double newX = p.getX() * cosb - p.getY() * sinb;
		double newY = p.getY() * cosb + p.getX() * sinb;
		
		p.setLocation( newX, newY );
	}
	
	public static void main (String[] args) throws java.lang.Exception
	{
		Point p = new Point(125,125);
		
		rotate_point(p);
		
		System.out.println("p has moved from (125,125) to "+p);
	}
}