to add rand to your project you add these lines to Cargo.toml
rand
Cargo.toml
[dependencies] rand = "0.8.5"
then run cargo build
cargo build
Crates.io is where people in the Rust ecosystem post their open source Rust projects for others to use.