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

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -