Test for random number in range.