def integers(options = {})
      url_params = { max: clean(options[:max]) || 100,
                     min: clean(options[:min]) || 1,
                     num: clean(options[:num]) || 10,
                     base: clean(options[:base]) || 10,
                     rnd: 'new',
                     format: 'plain',
                     col: 1
                   }

      numbers=[]

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

      numbers
    end
def integers(options = {})
      url_params = { max: clean(options[:max]) || 100,
                     min: clean(options[:min]) || 1,
                     num: clean(options[:num]) || 10,
                     base: clean(options[:base]) || 10,
                     rnd: 'new',
                     format: 'plain',
                     col: 1
                   }

      numbers=[]

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

      numbers
    end
Random Integers Generator.

 Configuration options:
 * <tt>:num</tt> - The number of integers requested. Posibles values: [1,1e4]. Default: 10
 * <tt>:min</tt> - The smallest value allowed for each integer. Posibles values: [-1e9,1e9]. Default: 1
 * <tt>:max</tt> - The smallest value allowed for each integer. Posibles values: [-1e9,1e9]. Default: 100
 * <tt>:base</tt> - The base that will be used to print the numbers. Posibles values: 2, 8, 10, 16 (binary, octal, decimal or hexadecimal). Default: 10

 It returns an Array of integers with the size indicated by <tt>:num</tt>

   integers(num: 15, max: 2, min: 200, base: 8)  #=> array of 15 base 8 numbers between 2 and 200
   integers(num: 4, max: 33)                     #=> [31, 25, 28, 6]