Setting random ordering in LoopyBP.