click button to change order of divs to a random order....

click button to change order of divs to a random order....


I have four stacked divs:


  1. <div>First</div>
  2. <div>Second</div>
  3. <div>Third</div>
  4. <div>Fourth</div>

at the click of a button need to reorder the divs, at random; so every time the button is clicked the order of the divs changes to a random order..

how would I go about this.. I guess I don't need specific code, probably some cool "pseudo-code" would do..... ;-)

thank you...