Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SmingHub/Sming
/ random
Function
random
Sming/Wiring/WMath.cpp:60–67 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
58
}
59
60
long random(long howbig)
61
{
62
if(howbig == 0) {
63
return 0;
64
}
65
66
return getRandom() % howbig;
67
}
68
69
long random(long howsmall, long howbig)
70
{
Callers
2
blink
Function · 0.85
loop
Function · 0.85
Calls
1
getRandom
Function · 0.85
Tested by
no test coverage detected