Need some Javascript help :)

Math.floor((Math.random()*end-start)+start+1

It's wrong on that line.

 
function randomInRange(start, end) {
return Math.round(start + Math.random() * (end - start));
}
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…