function r(a, b) {
            var c = b - a;
            var arr = new Array(c);
            while (c--)
                arr[c] = --b;
            return arr;
        }
range function for numbers [a, .., b-1]

@param {number} a
@param {number} b
@return {Array}