Skip to content

Commit

Permalink
Fix Random example (crystal-lang#5728)
Browse files Browse the repository at this point in the history
  • Loading branch information
wooster0 authored and chris-huxtable committed Apr 6, 2018
1 parent c55d7e9 commit 43a286c
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
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 43a286c

Please sign in to comment.