title: How do I generate a random number within my javascript code?
body: <p>I'm using some 3rd party javascript to generate a slideshows within each of the posts on a blog.  Each slideshow must have a unique ID to work properly.  I figured the easiest way to do this would be to generate a large random number for each slideshow when it's loaded on the page.</p>
  
  <p>Below is a snippet of the relevant parts of the code where POSTID represents the random number.  Note that the same random number must be referenced in the div below the script.</p>
  
  <pre><code>&lt;script language="javascript" type="text/javascript"&gt;
          $(function() {
          $("#POSTID").webwidget_slideshow_dot({
          slideshow_time_interval: '',
          slideshow_window_width: '320',
          slideshow_window_height: '480',
          slideshow_title_color: '#17CCCC',
          soldeshow_foreColor: '#000',
          });
          });
  &lt;/script&gt;
  
  &lt;div id="POSTID" class="webwidget_slideshow_dot"&gt;
          &lt;!-- some content goes here --&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p>Thanks</p>