fixed gibbs so it draws from subdivided interval [0,1)