Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LabSound/LabSound
/ rnd
Function
rnd
src/extended/SfxrNode.cpp:192–197 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
190
using namespace lab;
191
192
inline uint32_t rnd(uint32_t n)
193
{
194
if (n == 1)
195
return ((rand() & 0x7fff) > 0x3fff) ? 1 : 0;
196
return rand() % (n + 1);
197
}
198
199
#define PI 3.14159265f
200
Callers
10
frnd
Function · 0.85
coin
Method · 0.85
laser
Method · 0.85
explosion
Method · 0.85
powerUp
Method · 0.85
hit
Method · 0.85
jump
Method · 0.85
select
Method · 0.85
mutate
Method · 0.85
randomize
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected