def prior_creator(vector, priors_lowbounds, priors_highbounds):
    """
    Generates flat priors between *priors_lowbounds and *priors_highbounds for parameters in *vector

    :param vector: array containing parameters optimized within flat priors
    :param priors_lowbounds: array containing lower bound of flat priors
    :param priors_highbounds: array containing higher bound of flat priors
    :return: selection. selection = True if all *vector entries are within their flat prior. Otherwise selection = False
    """
    selection = True

    for i, entry in enumerate(vector):
        if entry > priors_lowbounds[i] and entry < priors_highbounds[i]:
            selection = selection * True
        else:
            selection = selection * False

    return selection