html - Randomly generate a number in Javascript -


i want randomly generate number between 1 , 10 , display on webpage, have idea how i'd go doing this?

preferably in full since have no idea im doing

c'mon man. google something. jsfiddle

var min = 1, max = 10,     num = math.floor(math.random() * (max - min + 1)) + min;  document.body.innerhtml = num; 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -