top of page
This site was designed with the
.com
website builder. Create your website today.
Start Now
Get randoms
Random number will be here
Random string will be here
function getRandomInRange(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; } function getRandomString() { return Math.random().toString(36).substr(2, 8); } $w.onReady(function () { $w('#button').onClick(() => { $w('#number').text = getRandomInRange(0, 99999).toString(); $w('#string').text = getRandomString().toString(); }); });
Example Demo
Example Code
bottom of page