def setup_random_seed(seed):
if seed == -<NUM_LIT:1>:<EOL><INDENT>seed = np.random.randint(<NUM_LIT:0>,<EOL>int(<NUM_LIT>))  <EOL><DEDENT>np.random.seed(seed)<EOL>
Setup the random seed. If the input seed is -1, the code will use a random seed for every run. If it is \
    positive, that seed is used for all runs, thereby giving reproducible results.

    Parameters
    ----------
    seed : int
        The seed of the random number generator.