Added random ray origin selection for form factors computation