Skip to content

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

@DanarQ

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions