Posted: March 21, 2012 in Web

After searching for a solution to show a random image from the sequence using jquery-cycle, I found this post with a simple (undocumented) solution.

Just add the following line to your cycle function, replacing 4 with the total number of slides:

startingSlide: Math.floor(Math.random()*4)

I graduated from LSU with a B.F.A. in Graphic Design and a minor in Art History. My passions are web design and front-end development with over 10 years of experience.


Leave a comment

Did this article help you? Do you have a different opinion? Feel free to leave a comment or ask questions.