MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / randomize_pt

Function randomize_pt

code/data-structures/kd_tree.test.cpp:64–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63double pt[CURK];
64void randomize_pt() {
65 double lo = -10,
66 hi = 10;
67
68 for (int i = 0; i < CURK; i++) {
69 pt[i] = uniform_real_distribution(lo, hi)(rng);
70 pt[i] = round(pt[i] * 3.0) / 3.0;
71 }
72}
73
74#define TREE1 1
75#define TREE2 1

Callers 1

testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected