to add rand to your project you add these lines to Cargo.toml

[dependencies]
rand = "0.8.5"

then run cargo build

Crates.io is where people in the Rust ecosystem post their open source Rust projects for others to use.