Halfway down P56, you show the code defining the struct for RandomNumberGenerator, with a prefix line of #[derive(Resource)]
.
I might be wrong on this, but I don’t believe this prefix line is in my_library/src/random.rs
(in case I missed it, I searched through the book to this point, and can only find that define reference when using the RandomNumberGenerator in the pig game code).