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

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

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -