MCPcopy 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
60long random(long howbig)
61{
62 if(howbig == 0) {
63 return 0;
64 }
65
66 return getRandom() % howbig;
67}
68
69long random(long howsmall, long howbig)
70{

Callers 2

blinkFunction · 0.85
loopFunction · 0.85

Calls 1

getRandomFunction · 0.85

Tested by

no test coverage detected