def generate_x_points(points_num=<NUM_LIT:100>, x_interval = (<NUM_LIT:0>, <NUM_LIT:20>), random=True):
x_interval = np.asarray( x_interval )<EOL>if random:<EOL><INDENT>x_points = np.random.rand(points_num) * ( x_interval[<NUM_LIT:1>] - x_interval[<NUM_LIT:0>] ) + x_interval[<NUM_LIT:0>]<EOL>x_points = np.sort( x_points )<EOL><DEDENT>else:<EOL><INDENT>x_points = np.linspace(x_interval[<NUM_LIT:0>], x_interval[<NUM_LIT:1>], num=points_num )        <EOL><DEDENT>return x_points<EOL>
Function generates (sorted) points on the x axis.

Input:
---------------------------
    points_num: int
        How many points to generate
    x_interval: tuple (a,b)
        On which interval to generate points
    random: bool
        Regular points or random

Output:
---------------------------
    x_points: np.array
        Generated points