Skip to content

手写获取随机数函数 #23

@Hongbusi

Description

@Hongbusi
function getRandom (min, max) {
  return Math.floor(Math.random() * Math.abs(max - min + 1) + min)
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions