Harry Kakueki wrote: > Does this do the same thing? > > hash_table=Hash.new(0) > wordsize = 10 > > (0...4**wordsize).each do |f| > hash_table[f.to_s(4).rjust(wordsize,"0").tr('0123','ACGT')] = f > end > > p hash_table > > > Harry Yes, they are the same. GOOD JOB!!! Li -- Posted via http://www.ruby-forum.com/.