Skip to content

Instantly share code, notes, and snippets.

@srobbin
Created February 4, 2010 18:30
Show Gist options
  • Save srobbin/294957 to your computer and use it in GitHub Desktop.
Save srobbin/294957 to your computer and use it in GitHub Desktop.
var images = [ "/path/to/image1.jpg",
"/path/to/image2.jpg",
"/path/to/image3.jpg",
"/path/to/image4.jpg"],
randNum = Math.floor( Math.random() * images.length );
$.backstretch( images[randNum] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment