title: obfuscate id in Rails with begin range
body: <p>I'm trying to obfuscate the ids in several models.</p>
  
  <p>I accomplish this using the solution proposed in <a href="https://github.com/namick/obfuscate_id/issues/51#issuecomment-196022028" rel="nofollow noreferrer">this GitHub issue</a> and is working fine (I don't want to use a <code>gem</code> due the future compatibility problems).</p>
  
  <p>The problem is that ids generated are small. I want them to start over the 1000000. How can accomplish this in a correct way?</p>
  
  <p>The code for the model:</p>
  
  <pre><code> before_create :generate_random_id
  
   private 
  
   def generate_random_id
     self.id = SecureRandom.uuid
   end 
  </code></pre>