title: Custom range with FactoryGirl sequence
body: <p>In the old version something like this was possible (<a href="http://www.pmamediagroup.com/2009/05/smarter-sequencing-in-factory-girl/" rel="noreferrer">more examples</a>):</p>
  
  <pre><code>Factory.sequence(:email, 50..60) do |n|
    "user_#{n}@example.com"
  end
  </code></pre>
  
  <p>Using this in the new FactoryGirl version will create an <code>NoMethodError: undefined method 'next' for 0..10:Range</code>.</p>
  
  <p>In particular I have a model <code>user</code> which has multiple <code>time_entries</code>. I want to create default values. For simplicity each user should create <code>n</code> time entries. The entries are created like this:</p>
  
  <pre><code>FactoryGirl.define do
    factory :time_entry do
      start_time { generate(:time_entry_begin) }
      end_time { generate(:time_entry_end) }
    end
  end
  
  FactoryGirl.define do
    sequence(:time_entry_begin, 0..10) do |n|
      DateTime.now - n.hours
    end
  end
  
  FactoryGirl.define do 
    sequence(:time_entry_end, 0..10) do |n|
      DateTime.now - n.hours + (1 + n).minutes
    end
  end
  </code></pre>