MCPcopy Create free account
hub / github.com/KTH-RPL/dufomap / randomColor

Function randomColor

src/dufomap.cpp:273–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273ufo::Color randomColor()
274{
275 static std::random_device rd;
276 static std::mt19937 gen(rd());
277 static std::uniform_int_distribution<ufo::color_t> dis(0, -1);
278 return {dis(gen), dis(gen), dis(gen)};
279}
280
281template <class Map>
282void cluster(Map& map, Clustering const& clustering)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected