Examples are as follows:
function RandomNum(Min,Max){var Range = Max - Min;var Rand = Math.random(); var num = Min + Math.round(Rand * Range); return num;}RandomNum(10,20);The above article "JS" is the example code of random numbers within the range of js acquisition. I hope it can give you a reference and I hope you can support Wulin.com more.