added method to generate random point near a specified point, including tests