random list

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am looking for a script that will randomly list a set of names. For
example, a page that has a list of the US States. Each time the page is
opened or refreshed the list is in a different order, a random order to the
list. Is this possible?
Thank you
Michael Mezalick
(e-mail address removed)
 
mezalick said:
I am looking for a script that will randomly list a set of names. For
example, a page that has a list of the US States. Each time the page
is opened or refreshed the list is in a different order, a random
order to the list. Is this possible?
Thank you
Michael Mezalick
(e-mail address removed)

Using JS, it is certainly possible to generate a single random number each
time a page is loaded, so I suppose one can also generate a set of random
numbers.

One then faces the problem of making sure that in the set of say 8-10
numbers none is reused. I found a script on The JavaScript
Source!!http://javascript.internet.com which will generate a random list,
but not without reusing numbers, e.g. for a set of four, it may generate
0,2,1,0,3,

The one has to use the set to generate the code for the list.

Quite a tricky bit of code, I would have thought.

But maybe there are some out there who have done it.

So
Good Luck,
Trevor L.
Website: http://tandcl.homemail.com.au
 
Back
Top