Skip to content

Commit 4532389

Browse files
wooster0ysbaddaden
authored andcommittedMar 31, 2018
Fix Random example (#5728)
1 parent 5cd78fa commit 4532389

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

Diff for: ‎src/random.cr

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ require "random/pcg32"
44
# `Random` provides an interface for random values generation, using a pseudo random number generator (PRNG).
55
#
66
# ```
7-
# Random.new_seed # => 112705036
8-
# Random.rand # => 0.167595
9-
# Random.rand(5) # => 2
7+
# Random.rand # => 0.167595
8+
# Random.rand(5) # => 2
109
# ```
1110
#
1211
# The above methods delegate to a `Random` instance.

0 commit comments

Comments
 (0)
Please sign in to comment.