Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more info about doctesting things with rand #22584

Merged
merged 2 commits into from
Jun 28, 2017
Merged

Conversation

kshyatt
Copy link
Contributor

@kshyatt kshyatt commented Jun 28, 2017

Since I just figured this out, might be useful to others.

@kshyatt kshyatt added the domain:docs This change adds or pertains to documentation label Jun 28, 2017
@kshyatt kshyatt requested a review from KristofferC June 28, 2017 00:05
produce consistent outputs during different Julia sessions.
produce consistent outputs during different Julia sessions. If you would like to show some random
number generation related functionality, one option is to explicitly construct and seed your own
[`MersenneTwister`] (or other pseudorandom number generator) and pass it to the functions you are
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

should MersenneTwister be reffed?

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 thought I did! Grrrr

@kshyatt
Copy link
Contributor Author

kshyatt commented Jun 28, 2017

@KristofferC better?

Copy link
Sponsor Member

@KristofferC KristofferC left a comment

Choose a reason for hiding this comment

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

Another thing that would be nice to mention is meta blocks (can be used to srand before every doctest in a markdown file): https://juliadocs.github.io/Documenter.jl/latest/man/syntax/#@meta-block-1 but that can be done in another PR.

Copy link
Member

@Sacha0 Sacha0 left a comment

Choose a reason for hiding this comment

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

Nice addition! :)

@kshyatt kshyatt merged commit c51c1c0 into master Jun 28, 2017
@kshyatt kshyatt deleted the ksh/docdocrand branch June 28, 2017 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants