Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithm-archivists/algorithm-archive
/ drand
Function
drand
contents/IFS/code/c/IFS.c:10–12 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
};
9
10
double drand() {
11
return ((double) rand() / (RAND_MAX));
12
}
13
14
struct point random_element(struct point *array, size_t n) {
15
return array[rand() % (int)n];
Callers
1
chaos_game
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected