Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/appdevforall/CodeOnTheGo
/ frand
Function
frand
subprojects/llama.cpp/tests/test-rope.cpp:51–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
49
#define GGML_PRINT(...) printf(__VA_ARGS__)
50
51
static float frand(void) {
52
return (float)rand()/(float)RAND_MAX;
53
}
54
55
static int irand(int n) {
56
if (n == 0) return 0;
Callers
1
get_random_tensor_f32
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected