隨機(jī)數(shù)據(jù)顯示功能、選號(hào)器
發(fā)布時(shí)間:2008-12-19 閱讀數(shù): 次 來源:網(wǎng)樂原科技
<script language="javascript">
function Quickpick()
{
var ball
for( ball = 0; ball < 5; ball++)
{
this[ball] = parseInt((Math.random() * Math.pow(10,16)) % 49) + 1;
for(var list = 0; list < ball; list++)
{
if(this[list] == this[ball])
{
list = ball;
ball--;
}
}
}
this[ball] = parseInt((Math.random() * Math.pow(10,16)) % 42) + 1;
return this;
}
</script>
<script language="javascript">
var idx;
var powerball = new Array(6);
powerball = this.Quickpick();
document.write("
");
document.write("體育彩票選號(hào)器");
document.write("
");
for(idx = 0; idx < 5; idx++)
document.write(powerball[idx] + " - ")
document.write("" + powerball[idx] + "");
document.write("");
</script>