title: How to generate a random date in Ruby?
body: <p>I have a model in my Rails 3 application which has a <code>date</code> field:</p>
  
  <pre><code>class CreateJobs &lt; ActiveRecord::Migration
    def self.up
      create_table :jobs do |t|
        t.date "job_date", :null =&gt; false
        ...
        t.timestamps
      end
    end
    ...
  end
  </code></pre>
  
  <p>I would like to prepopulate my database with random date values.</p>
  
  <p>What is the easiest way to generate a random date ?</p>