From: 13 Date: 2006-04-23T02:42:33+09:00 Subject: Re: YAML, ERB & nested maps problem > How about: > params: > currencies: <%= random_array.inspect %> > > or something like that. > > David Wow. Thanks, David. This is simple and straight forward, just what I need ! # somewhere outside fixture do the initialization of date array today = Date.today first = Date.new(today.year, today.mon, 1) last = (first >> 1) - 1 dates = (first..last).collect { |d| d.to_s } Then in *.yml params: <%= dates.rand_subset %> # rand_subset is from facets library Again, thanks ! -- Martins