fix rng bug in gibbs_shared. (sovled the inconsistency that gibbs_shared yield lower accuracy than gibbs).