Changes between Version 2 and Version 3 of Ticket #68


Ignore:
Timestamp:
12/29/2011 10:13:20 AM (14 years ago)
Author:
liaojunqiang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #68 – Description

    v2 v3  
    2525var size = ${hotSellProductSize>0?hotSellProductSize:0}; 
    2626for(var i = 0; i < size; i++){ 
    27         rand1 = parseInt(Math.random() * size); 
    28         rand2 = parseInt(Math.random() * size); 
     27        rand1 = parseInt(Math.random() * (size - 1)); 
     28        rand2 = parseInt(Math.random() * (size - 1)); 
    2929        var temp = hotSellArray[rand1]; 
    3030        hotSellArray[rand1] = hotSellArray[rand2];