title: Generate random value in Ruby
body: <p>I'm new to Ruby. I would like to generate random value and add to domain name. What is the proper way to do this in Ruby?</p>
  
  <pre><code>:domain =&gt; 'test-domain'
  </code></pre>
  
  <p>For example I would like to do something like this:</p>
  
  <pre><code>:domain =&gt; "test-domain #{SecureRandom.random_number(100)}"
  </code></pre>