title: Random left, top position, jquery, javascript
body: <p>I have a list of div elements, which is dragable items.</p>
  
  <p>I need to do, that all elements, i will generate random top and left positions, which will be in range of my container, but i dont know how to do it :)</p>
  
  <p>Container div is: width: 800px; height: 500px;</p>
  
  <p>My js now is like:</p>
  
  <pre><code>var randomTopPos = Math.floor(Math.random() * (600 / 2));
  var randomLeftPos = Math.floor(Math.random() * (5));
  
  $(".t-shirt-design").css({
      'top' : randomTopPos,
      'left': randomLeftPos
  });
  </code></pre>