title: How to get a random number in FactoryGirl?
body: <p>Is it possible for FactoryGirl to define a random number say from 0-10?</p>
  
  <pre><code>    factory :rating do
         ranking 1 #random number?
         recipe
      end
  </code></pre>
  
  <p>I'd really like the ranking number generated to be a random value between 0-10.  </p>
  
  <p>I want to generate ratings with different numbers, but don't want to explicitly define them in rspec.  This would be used to display the average and other stats from the rating numbers. Ex: How many 10's, How many 0's, average etc.</p>