Insert a button on a page with random number generation
all thing you have to do is use javaScript function JavaScript Example: var random_number = function(){ return Math.floor(Math.random() * 10000) + 1; }; document.getElementById(‘button_text’).onclick = function () { document.getElementById(“input_box”).innerHTML = random_number(); }; jQuery Example: $.randomBetween(0,10000);