Skip to content

Commit 38d7993

Browse files
Make sure seed is changed.
1 parent 8e15fc6 commit 38d7993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/gaussian_nondiagcov.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def run_example(
131131
# Define the number of dimensions and the mean of the Gaussian
132132
num_samples = nchains * samples_per_chain
133133
# Initialize a PRNG key (you can use any valid key)
134-
key = jax.random.PRNGKey(0)
134+
key = jax.random.PRNGKey(i_realisation)
135135
mean = jnp.zeros(ndim)
136136

137137
# Generate random samples from the 2D Gaussian distribution

0 commit comments

Comments
 (0)