Skip to content

Commit

Permalink
Fix Random example (#5728)
Browse files Browse the repository at this point in the history
wooster0 authored and ysbaddaden committed Mar 31, 2018

Verified

This commit was signed with the committer’s verified signature.
makenowjust Hiroya Fujinami
1 parent 5cd78fa commit 4532389
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/random.cr
Original file line number Diff line number Diff line change
@@ -4,9 +4,8 @@ require "random/pcg32"
# `Random` provides an interface for random values generation, using a pseudo random number generator (PRNG).
#
# ```
# Random.new_seed # => 112705036
# Random.rand # => 0.167595
# Random.rand(5) # => 2
# Random.rand # => 0.167595
# Random.rand(5) # => 2
# ```
#
# The above methods delegate to a `Random` instance.

0 comments on commit 4532389

Please sign in to comment.