def generate_uniform_prior(params, indent=4):
    """
    Generates the JAGS prior declarations for a list of parameters. The
    strings are generated using a specifiable number of indentation
    whitespaces.
    """

    prior_strings = []
    for p in params:
        prior_strings.append(
            "{}{} ~ dunif(0, 1)".format("".join([" "] * indent), p))
    return prior_strings