Added useful rand functions. Added math function (get angle between points).