title: Rails: Generate Unique Random Number for populating a CSS class String How To?
body: <p>So let's say we have a rails view with this code:</p>
  
  <pre><code>&lt;h1&gt;Users who have the &lt;%= @title.name %&gt; Title&lt;/h1&gt;
  &lt;ul&gt;
    &lt;% @title.users.each do |user| %&gt;
      &lt;li&gt;&lt;%= user.username %&gt; &lt;div class="rw-ui-container rw-urid-X"&gt;&lt;/div&gt;&lt;/li&gt;
    &lt;% end %&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>And what we want to do is to automatically <em>print</em> this line:</p>
  
  <pre><code>&lt;div class="rw-ui-container rw-urid-X"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Right aside each username the loop throws at us BUT we want <strong>X</strong> to be  a different <strong>unique</strong> random number each time...</p>
  
  <p>How can this be accomplished?</p>