js 获取某一范围的任意值

function random(min, max)
{
    return min + Math.floor(Math.random() * (max - min + 1));
}
原文地址:https://www.cnblogs.com/ax-null/p/6774538.html