Skip to content

Conversation

@tpapp
Copy link
Contributor

@tpapp tpapp commented May 10, 2019

Also fix the overlooked issues in the discussion of #31787.

In addition, incidental clarifications and typo fixes.

@rfourquet

@tpapp tpapp mentioned this pull request May 10, 2019
Copy link
Member

@rfourquet rfourquet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks you for the updates, they look good, we are almost there now!

@rfourquet rfourquet changed the title Tp/remaining fixes 31787 remaining fixes #31787 May 11, 2019
@rfourquet rfourquet added randomness Random number generation and the Random stdlib docs This change adds or pertains to documentation labels May 11, 2019

The object returned by `Sampler` is then used to generate the random values, by a method of `rand` defined for this purpose. Samplers can be arbitrary values, but for most applications the following predefined samplers may be sufficient:
The object returned by `Sampler` is then used to generate the random values. When implementing the random generation interface for a value `X::T` that can be sampled from, the implementor should define the method

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in X::T, the T is not used later right? then you could remove it (only if you push again to this branch for other reasons before we merge, no need to re-trigger CI only for this).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no other outstanding changes, so I pushed a commit with this one. I am hoping the PR can be accepted now.

@rfourquet rfourquet mentioned this pull request May 12, 2019
2 tasks
@rfourquet rfourquet merged commit 8932ccd into JuliaLang:master May 12, 2019
@rfourquet rfourquet changed the title remaining fixes #31787 document Random samplers: continuation of #31787 May 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs This change adds or pertains to documentation randomness Random number generation and the Random stdlib

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants