`return x / 2;`

This would create all the lower half with equal probability and none of the higher half (so it is essentially the same as `numberBetween($min, $max / 2)`.