Permalink
Browse files

README changed

  • Loading branch information...
1 parent 4e7e276 commit 8dcec35b88b4428df1b5322e0c554cac59f0da01 @matsumotory committed Dec 28, 2012
Showing with 11 additions and 2 deletions.
  1. +11 −2 README.md
View
@@ -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)

0 comments on commit 8dcec35

Please sign in to comment.