Corrected random number distribution for metropolis roll