JavaScript 随机数生成规则

生成x-y

Math.round(Math.random()*(y-x)+x)

 

posted @ 2025-01-14 18:43  市丸银  阅读(14)  评论(0)    收藏  举报