Uniform int distribution

Fix for #159