Segment generation

Generation of a bounded segment

a_pi.segment_generator.random_segment(x_max, y_max)[source]

Creates a segment with each endpoint x, y such that:

\[x \in [0;x\_max],y \in [0;y\_max]\]