+ 3
Why you my code?
2 Respuestas
+ 14
var min=prompt("min number");
var max=prompt("max number");
// code begins
var ran=Math.floor(Math.random()*max);
if(ran>=min && ran<=max){
alert (ran);
}
else if(!ran){
alert (Math.random ());
}
else{
alert ("min>max!")
}
// Return is only used with functions
+ 4
thanks;)