Professional Documents
Culture Documents
Script
Script
x= (Math.ceil(Math.random()*9)*10) + ((Math.random()*5)+4);
x= Math.ceil(x);
while(x>95){
x= (Math.ceil(Math.random()*9)*10)+((Math.random()*5)+4);
x= Math.ceil(x);
}
y=x;
function sum(){
x=(Math.ceil(Math.random()*9)*10) +((Math.random()*5)+4);
x=Math.ceil(x);
while(x>95){
x=(Math.ceil(Math.random()*9)*10)+((Math.random()*5)+4);
x=Math.ceil(x);
}
w++;
if( w< 10){
y += x;
console.log(x)
}
else{
console.log("Rest" + y);
clearInterval(timer_1);
var new_Date = new Date();
var new_Sec = new_Date.getTime();
var Time_diff = new_Sec - old_Sec;
}
}