To follow the examples in the book, you should download all the examples from the online repository: https://github.com/PacktPublishing/Creative-Projects-for-Rust-Programmers. This repository contains a sub-folder for each chapter of the book and a sub-sub-folder for any project in a chapter.
For example, to run the use_rand project in this chapter, you should go to the Chapter01/use_rand folder and type cargo run. Notice that the most important files of any project are cargo.toml and src/main.rs, so you should always take a look at them first.