Ever wanted to display a random quote or image on your pages? Or perhaps you've got some links to other sites, and you want to put a random one on a page. Well this tutorial will explain how to do all these.
FreeVersion: n/a Platform(s): linux, windows, freebsd, osx, sun Updated: Mon Oct 15 2007
This JavaScript picks up a number of unique random elements from an array. For example; if you have an array myArray consisting of 10 elements and want to pick 5 unique random elements. Suppose initially myArray[3] is picked randomly, then myArray[3] should not be picked again. If you want to pick 4 numbers, call the function like: pickNums(4).
Version: n/a Platform(s): n/a Updated: Tue Jun 24 2003
This JavaScript, based on Unique Random Numbers II, picks Unique Random Sets. Here, there are more than one arrays (need not be of same length). First, we pick a number of unique random elements from the first array, numArr1 to form the array pickArr1. Now each element of pickArr1 picks another element from the second array numArr2, which again is unique and random. Thus we form the array pickArr2. Similarly each element of pickArr2 picks unique random elements from numArr3 to form pickArr3.
Version: n/a Platform(s): n/a Updated: Mon Aug 26 2002