Skip to content

Documentation of rand_float() is incorrect. #6

@your-diary

Description

@your-diary

Document (emphasis mine)

link

rand_float(start: f64, end: f64) -> f64

Generate a random floating-point number within an exclusive range.

Implementation (comment mine)

link

Ok(rand::thread_rng().gen_range(start..=end)) //inclusive

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions