Skip to content

math/rand: example_test should show examples with the correct Uint32 method #9429

@guobiao

Description

@guobiao

In math/rand's example_test.go, line 75: http://golang.org/src/math/rand/example_test.go#L75.

I believe the intention was to show with r.Uint32() rather than the written r.Int63(). Fortunately, the underlying implementation for both methods are the same, so this seems to be a trivial one-line fix.

I'll be happy to make the change if the issue is confirmed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions