Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boostorg/compute
/ rand_int
Function
rand_int
perf/perf_stl_set_difference.cpp:17–20 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
15
#include
"perf.hpp"
16
17
int rand_int()
18
{
19
return static_cast<int>((rand() / double(RAND_MAX)) * 25.0);
20
}
21
22
int main(int argc, char *argv[])
23
{
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected