Skip to content

Commit

Permalink
README changed
Browse files Browse the repository at this point in the history
  • Loading branch information
matsumotory committed Dec 28, 2012
1 parent 4e7e276 commit 8dcec35
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Expand Up @@ -18,8 +18,17 @@ rake ENABLE_GEMS="true"
```ruby
r = Random.new();

r.srand()
100.times do |i|
r.srand(10)
hoge = r.rand()
r.srand(20)
fuga = r.rand()
r.srand(10)
foo = r.rand()

puts hoge == fuga
puts hoge == foo

3.times do |i|
puts r.rand()
puts r.rand(0)
puts r.rand(10)
Expand Down

0 comments on commit 8dcec35

Please sign in to comment.