MCPcopy Create free account
hub / github.com/brocode/fw / random_color

Function random_color

src/util/mod.rs:22–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20];
21
22pub fn random_color() -> Color {
23 let mut rng = rand::rng();
24 COLOURS.choose(&mut rng).map(ToOwned::to_owned).unwrap_or(Color::Black)
25}

Callers 3

clone_projectFunction · 0.85
autotagFunction · 0.85
foreachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected