import torch


def random_points_1D(N=100):
    """Sample random points in 1d


    Parameters
    ----------

    N : int (default: 100)
        Number of points

    Return
    ------
    x : tensor, shape (1, N)
        points

    """

    x = 2 * (torch.rand(1, N) - 0.5)
    return x