Skip to content

Outdated rand crate example in The Rust Programming Language book #4746

Description

@DanarQ

Hello Rust team,

I noticed that the random number generation example in "The Guessing Game" chapter appears to use the older rand API:

let secret_number = rand::thread_rng().gen_range(1..=100);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions