make std.math.random use a half open range