可能重复: 在特定范围内的Javascript中生成随机数?
假设我想生成一个50到100的随机数.
我知道有:
Math.random()
但我只能找到从1到'x'的方法
javascript random
javascript ×1
random ×1