n = range->first + (RANDOM() % range->span);
n = range->first + (RANDOM() % (range->span+1));
rangeNext (range_t *range, unsigned long last){    unsigned long	n;        assert (range != NULL);    if (range->span == 0)		/* empty range (span = 0) */	return range->first;    if (range->sequential > 0) {	/* incrementing sequential */	n = last + 1;    } else if (range->sequential < 0) {	/* decrementing sequential */	n = last - 1;    } else {				/* random */	n = range->first + (RANDOM() % range->span);	assert ((n >= range->first) && (n <= range->last));    }					/* check range */    if (n > range->last) n = range->first;    if (n < range->first) n = range->last;    return n;}