When I am drawing my cursor is snapping to random point on my screen

Make sure the grid snap icon is off in the command line (snaps to the grid lines) To the right of the grid icon.