Function random

Return a uniform random value between minVal and maxValue.