title: magento get products from category, order by rand()
body: <p>I have the following:</p>
  
  <pre><code>$products = Mage::getModel('catalog/product')
      -&gt;getCollection()
      -&gt;addAttributeToSort('id', 'RAND()')
      -&gt;addAttributeToSelect('small_image')
      -&gt;addCategoryFilter(Mage::getModel('catalog/category')-&gt;load($catId));
  </code></pre>
  
  <p>But I need to order by id <code>RAND()</code>, how can I do this? (The code shows how I've tried with no luck)</p>