Basic set-up:
How many random integers? lower bound: upper bound:
Output:
Script of core function: function generate(){ lowest=eval(document.a.c.value); highest=eval(document.a.d.value); range=highest-lowest+1; newrandom=Math.random(); document.a.f.value=newrandom; aninteger=Math.ceil(range*newrandom)+lowest-1; document.a.g.value=aninteger; document.a.h.value=document.a.h.value+" "+aninteger; }