def sequence(min, max)
      url_params = { max: clean(max) || 10,
                     min: clean(min) || 1,
                     rnd: 'new',
                     format: 'plain',
                     col: 1
                   }
      sequence_numbers=[]

      check_for_http_errors{
       response=open("#{@website}sequences/?max=#{url_params[:max]}&min=#{url_params[:min]}&col=#{url_params[:col]}&rnd=#{url_params[:rnd]}&format=#{url_params[:format]}")
       response.each_line{|line| sequence_numbers << line.to_i}
      }

      sequence_numbers
    end
def sequence(min, max)
      url_params = { max: clean(max) || 10,
                     min: clean(min) || 1,
                     rnd: 'new',
                     format: 'plain',
                     col: 1
                   }
      sequence_numbers=[]

      check_for_http_errors{
       response=open("#{@website}sequences/?max=#{url_params[:max]}&min=#{url_params[:min]}&col=#{url_params[:col]}&rnd=#{url_params[:rnd]}&format=#{url_params[:format]}")
       response.each_line{|line| sequence_numbers << line.to_i}
      }

      sequence_numbers
    end
The Sequence Generator

 It will randomize a given interval of integers, i.e., arrange them in random order.

 It needs two params:
 * <tt>min</tt> - The lower bound of the interval (inclusive). Posibles values: [-1e9,1e9]
 * <tt>max</tt> - The upper bound of the interval (inclusive). Posibles values: [-1e9,1e9]

 The length of the sequence (the largest minus the smallest value plus 1) can be no greater than 10,000.

 It returns an Array of all the integers of the given interval arranged randomly

   sequence(2, 15)  #=> [13, 2, 10, 4, 9, 15 ,12, 3, 5, 7, 6, 14, 8, 11]