require './Ahashdictionary.rb'

class Fixnum                        # HashDictionary に整数が直接追加する
  def key()  self  end              # ために整数を確証
  def value()  self  end
end

hash_dict = HashDictionary.new(3)
1000.times do |n|
  #puts
  #hash_dict.print_stats
  r = rand 100000
  #puts "Inserting #{r}"
  hash_dict.insert r
end

puts hash_dict.inspect
hash_dict.print_stats