MCPcopy 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
10double drand() {
11 return ((double) rand() / (RAND_MAX));
12}
13
14struct point random_element(struct point *array, size_t n) {
15 return array[rand() % (int)n];

Callers 1

chaos_gameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected