Get A Random Element From A Vec In Rust
February 2024
This is how I'm getting random items from a Vec in Rust.
```cargo
rand = "0.8"
```
use thread_rng;
use SliceRandom;
Output:
charlie
end of line
This is how I'm getting random items from a Vec in Rust.
```cargo
rand = "0.8"
```
use thread_rng;
use SliceRandom;
charlie