Question: is it possible to randomize the bricks in the JQuery plugin Masonry so that every time the page loads a different arrangement is viewed? There is no option for random as far as I can tell.

Thanks!

Answer: 
I think a more appropriate plugin for your would be [Isotope](http://isotope.metafizzy.co/), it's built the same way as Masonry (and by the same guy!) but has sorting and filtering features built-in
```
(function($) {

$.fn.randomize = function(childElem) {
  return this.each(function() {
      var $this = $(this);
      var elems = $this.children(childElem);

      elems.sort(function() { return (Math.round(Math.random())-0.5); });  

      $this.remove(childElem);  

      for(var i=0; i < elems.length; i++)
        $this.append(elems[i]);      

  });    
}
})(jQuery);

$(window).load(function(){
  $(masonry-container).randomize(masonry-brick).masonry('reload');
});

```