MCPcopy Create free account
hub / github.com/blinker-iot/blinker-js / randomNumber

Function randomNumber

example/example.ts:99–102  ·  view source on GitHub ↗
(min = -10000, max = 10000)

Source from the content-addressed store, hash-verified

97*/
98// 随机数
99function randomNumber(min = -10000, max = 10000) {
100 let random = Math.random()
101 return Math.floor((min + (max - min) * random))
102}
103
104// 随机颜色
105function randomColor() {

Callers 1

example.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected