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