MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / frand

Function frand

tests/test-grad0.cpp:50–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48#define GGML_PRINT(...) printf(__VA_ARGS__)
49
50static float frand(void) {
51 return (float)rand()/(float)RAND_MAX;
52}
53
54static int irand(int n) {
55 if (n == 0) return 0;

Callers 2

get_random_tensor_f32Function · 0.70
get_random_tensor_f16Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected