Skip to content

Commit

Permalink
Fix Random example (#5728)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 authored and ysbaddaden committed Mar 31, 2018
1 parent 5cd78fa commit 4532389
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/random.cr
Expand Up @@ -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.
Expand Down

0 comments on commit 4532389

Please sign in to comment.