def strings(options = {})
      url_params = { num: clean(options[:num]) || 10,
                     len: clean(options[:len]) || 8,
                     digits: check_on_off(options[:digits]) || 'on',
                     unique: check_on_off(options[:unique]) || 'on',
                     upperalpha: check_on_off(options[:upperalpha]) || 'on',
                     loweralpha: check_on_off(options[:loweralpha]) || 'on',
                     rnd: 'new',
                     format: 'plain'
                   }

      strings=[]

      check_for_http_errors{
        response=open("#{@website}strings/?num=#{url_params[:num]}&len=#{url_params[:len]}&digits=#{url_params[:digits]}&unique=#{url_params[:unique]}&upperalpha=#{url_params[:upperalpha]}&loweralpha=#{url_params[:loweralpha]}&rnd=#{url_params[:rnd]}&format=#{url_params[:format]}")
        response.each_line{|line| strings << line.strip}
      }

      strings
    end
def strings(options = {})
      url_params = { num: clean(options[:num]) || 10,
                     len: clean(options[:len]) || 8,
                     digits: check_on_off(options[:digits]) || 'on',
                     unique: check_on_off(options[:unique]) || 'on',
                     upperalpha: check_on_off(options[:upperalpha]) || 'on',
                     loweralpha: check_on_off(options[:loweralpha]) || 'on',
                     rnd: 'new',
                     format: 'plain'
                   }

      strings=[]

      check_for_http_errors{
        response=open("#{@website}strings/?num=#{url_params[:num]}&len=#{url_params[:len]}&digits=#{url_params[:digits]}&unique=#{url_params[:unique]}&upperalpha=#{url_params[:upperalpha]}&loweralpha=#{url_params[:loweralpha]}&rnd=#{url_params[:rnd]}&format=#{url_params[:format]}")
        response.each_line{|line| strings << line.strip}
      }

      strings
    end
Random Strings Generator.

 It will generate truly random strings of various length and character compositions.

 Configuration options:
 * <tt>:num</tt> - The number of strings requested. Posibles values: [1,1e4]. Default: 10
 * <tt>:len</tt> - The length of the strings. All the strings produced will have the same length. Posibles values: [1,20]. Default: 8
 * <tt>:digits</tt> - Determines whether digits (0-9) are allowed to occur in the strings. Posibles values: ['on', 'off']. Default: on
 * <tt>:upperalpha</tt> - Determines whether uppercase alphabetic characters (A-Z) are allowed to occur in the strings. Posibles values: ['on', 'off']. Default: on
 * <tt>:loweralpha</tt> - Determines lowercase alphabetic characters (a-z) are allowed to occur in the strings. Posibles values: ['on', 'off']. Default: on
 * <tt>:unique</tt> - Determines whether the strings picked should be unique (as a series of raffle tickets drawn from a hat) or not (as a series of die rolls).
 If unique is set to on, then there is the additional constraint that the number of strings requested (num) must be less than or equal to the number of strings
 that exist with the selected length and characters. Posibles values: ['on', 'off']. Default: on

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

   strings(num: 15, len: 2, digits: 'off', upperalpha: 'off')  #=> array of 15 strings of size 2 composed by diggits and lowercase letters with no repetition.
   strings(num: 4, len: 10)                                    #=> ["iloqQz2nGa", "D2mgs12kD6", "yMe1eDsinJ", "ZQPaEol6xr"]