Skip to content

Commit fed528a

Browse files
authored
Update README.md
1 parent 74d367c commit fed528a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

JuliaBUGS/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ model {
3434
"""
3535

3636
posterior = compile(model, (; N = 10, y = randn(10)))
37+
rng, sampler = Random.MersenneTwister(123), JuliaBUGS.IndependentMH()
3738

38-
chain = AbstractMCMC.sample(Random.MersenneTwister(123), posterior, JuliaBUGS.IndependentMH(), 1000)
39+
chain = AbstractMCMC.sample(rng, posterior, sampler, 1000)
3940
```
4041

4142
For a complete walkthrough, see the [example](https://turinglang.org/JuliaBUGS.jl/stable/example).

0 commit comments

Comments
 (0)