Add exception wrapping to randu call.
Rescale histogram values to not fall in one bin.