Skip to content

Commit

Permalink
Update index.md (JuliaLang#46342)
Browse files Browse the repository at this point in the history
Add sentence mentioning that random numbers from other distributions can be obtained using the Distributions.jl package, with a link to the documentation.
  • Loading branch information
mcreel authored and pcjentsch committed Aug 18, 2022
1 parent d4e0b9c commit 20a14ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stdlib/Random/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ unbounded integers, the interval must be specified (e.g. `rand(big.(1:6))`).
Additionally, normal and exponential distributions are implemented for some `AbstractFloat` and
`Complex` types, see [`randn`](@ref) and [`randexp`](@ref) for details.

To generate random numbers from other distributions, see the [Distributions.jl](https://juliastats.org/Distributions.jl/stable/) package.

!!! warning
Because the precise way in which random numbers are generated is considered an implementation detail, bug fixes and speed improvements may change the stream of numbers that are generated after a version change. Relying on a specific seed or generated stream of numbers during unit testing is thus discouraged - consider testing properties of the methods in question instead.

Expand Down

0 comments on commit 20a14ff

Please sign in to comment.