Arrange classes randomly in a variable

Arrange classes randomly in a variable

Reposted this topic since my last topic's URL could not be found.

Hi all!

I'm new to jQuery and loving it already :). I'm trying to create a simple image slider and I already managed to get the images sliding in a predefined order. Now I would like it to randomly arrange my slides every time I refresh the page.

  1. var slides = $('.slides');

That is what I'm using to push my slides into the variable. It's taking the classes "slide" I created, which are containing my images.

I would really appreciate any help which could lead me into the right direction.
Thanks in advance!