okay,
either it's too late for me to work on this, or it's because I'm not used to javascript programming, but can anyone tell me what's wrong with the following tiny function?
thank you!
either it's too late for me to work on this, or it's because I'm not used to javascript programming, but can anyone tell me what's wrong with the following tiny function?
Code:
function roll_score()
{
var score = new array();
score.length = 0;
for(i=0;i<4;i++)
{
score[i] = Math.floor(Math.random()*6) + 1;
}
form1.rolled_score.value = score[0];
}
thank you!