mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* random.c (rb_f_rand): RDoc typo fix. a patch from Frederick
Cheung <fred at 82ask.com>. [ruby-talk:216047] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8410314961
commit
2a0c02c27d
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Mon Sep 25 08:11:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* random.c (rb_f_rand): RDoc typo fix. a patch from Frederick
|
||||
Cheung <fred at 82ask.com>. [ruby-talk:216047]
|
||||
|
||||
Sun Sep 24 21:19:24 2006 Guy Decoux <ts@moulon.inra.fr>
|
||||
|
||||
* gc.c (gc_mark_children): NODE_POSTEXE holds Ruby VALUE.
|
||||
|
|
2
random.c
2
random.c
|
@ -419,7 +419,7 @@ limited_big_rand(struct RBignum *limit)
|
|||
* than or equal to zero and less than max1. <code>Kernel::srand</code>
|
||||
* may be used to ensure repeatable sequences of random numbers between
|
||||
* different runs of the program. Ruby currently uses a modified
|
||||
* Mersenne Twister with a period of 219937-1.
|
||||
* Mersenne Twister with a period of 2**19937-1.
|
||||
*
|
||||
* srand 1234 #=> 0
|
||||
* [ rand, rand ] #=> [0.191519450163469, 0.49766366626136]
|
||||
|
|
Loading…
Reference in a new issue