View Full Version : Random Page

08-01-2011, 09:25 PM
I am new to dreamweaver.
I want to create a button which opens a new random page.
I've seen scripts where you put the pages you want to load in an array
and then generate a random nb used as an index.

But I got a lot of pages more than 100.

An example of this would be the www[dot]explosm (http://www.explosm)[dot]net/comics/2503/
random button.

Anyone knows how to do this?

08-02-2011, 01:03 AM
it would need an array i would think or paoosibly select from files ina specific directory perhaps.

08-02-2011, 03:06 AM
If it's a range, no need for an array, just use a random function.