代码如下:
function getRandomNumbers(count)
{
var numbers = new Array();
var original = new Array();
for (var i=0;i
original[i] = i+1;
}
original.sort(function(){ return 0.5 - Math.random(); });
for (var i=0;i
numbers[i] = original[i] - 1;
}
return numbers;
}
代码如下:
var sf = new Array();
sf[0]='
代码如下:
var numbers = getRandomNumbers(sf.length);
for( i=0;i
document.write(sf[numbers[i]]);
}