import random


def init_NWeights_random(models, records, key_in=None, nbr_n=None, inf=1, sup=100, **kwargs):
    """Give random weights to every node.

    Keyword Arguments:
        key_in: str: Key of the entity the weights are associated with.
        nbr_n: int: If [key_in] is not provided, must specify the
            number of weights to generate.
        inf: int: Minimum weight of a vertex
        sup: int: Maximum weight of a vertex
    """
    if nbr_n is None:
        nbr_n = models[key_in]["nbr_n"]
    return [random.randint(inf, sup) for _ in range(nbr_n)]