finished firstorder
 second-order : generating random + circle edge