Have two arrays - first one with 2 products and second one with 7
products. Randomise the 2nd array (with Fisher-Yates shuffle ;) and
concat() the two arrays to produce the array with 9 products.
--
Kenneth Kawamoto
http://www.materiaprima.co.uk/
On 11 May 2010 01:44, Donald Talcott
Kenneth,
thanks for the response, this should work well.
On May 11, 2010, at 4:53 AM, kennethkawam...@gmail.com wrote:
Have two arrays - first one with 2 products and second one with 7
products. Randomise the 2nd array (with Fisher-Yates shuffle ;) and
concat() the two arrays to produce the
Last year I created a small timeline based intro of products for a
client that used Math.random to produce a random start of the
animation sequence. This year they would like two specific product
animations to always start in the #1 and #2 position and the remaining
7 products to play in a
3 matches
Mail list logo