import secrets


def random_select(var_names, count):
    """
    Sample count variable from var_names

    :param var_names: a name-bool pair from which sample.
    :type var_names: dict
    :param count: the number of variables to sample.
    :type count: int
    :return: the variables pair with True if selected, else False.
    :rtype: dict
    """
    for k in var_names.keys():
        var_names[k] = False
    rng = secrets.SystemRandom()

    selected = rng.sample(var_names.keys(), count)

    for sel in selected:
        var_names[sel] = True

    return var_names