making "MCMC"

I have a crude version of an MCMC code