js 获取某一范围的任意值

it2026-04-19  1

function random(min, max) { return min + Math.floor(Math.random() * (max - min + 1)); }

 

转载于:https://www.cnblogs.com/ax-null/p/6774538.html

相关资源:数据结构—成绩单生成器
最新回复(0)