Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
pub 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_project
Function · 0.85
autotag
Function · 0.85
foreach
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected