Dear @mbaulch, Yes, that fixed it. It's not obvious (at least to me) why this would happen, when another, very similar, example doesn't have this problem:
[https://github.com/sdwfrost/distributions/blob/master/examples/gibbs.nim](https://github.com/sdwfrost/distributions/blob/master/examples/gibbs.nim)