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 documentation for Random.rand and Random.seed #5098

Merged
merged 1 commit into from
Dec 19, 2021

Conversation

catlee
Copy link
Contributor

@catlee catlee commented Nov 9, 2021

Random.seed and Random.rand are currently undocumented, even though they share behaviour with other functions in this module.

This PR basically just copies the docs from the instance method documentation.

@nobu
Copy link
Member

nobu commented Dec 4, 2021

Isn’t it enough to describe these methods are same as the instance methods and called on the default PRNG?

random.c Outdated Show resolved Hide resolved
random.c Outdated Show resolved Hide resolved
random.c Outdated Show resolved Hide resolved
@nobu nobu added the Documentation Improvements to documentation. label Dec 19, 2021
random.c Outdated Show resolved Hide resolved
@matzbot matzbot merged commit 1dd10e1 into ruby:master Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
3 participants