Added rand_range macro.