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

Function randomNumber

example/example_realtime.ts:35–38  ·  view source on GitHub ↗
(min = 0, max = 100)

Source from the content-addressed store, hash-verified

33*/
34// 随机数
35function randomNumber(min = 0, max = 100) {
36 let random = Math.random()
37 return Math.floor((min + (max - min) * random))
38}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected