matz
|
6bbd76a732
|
* random.c (rb_f_rand): type check simplified. strings are no
longer allowed for argument. [ruby-dev:37655]
* test/ruby/test_rand.rb (TestRand::o.to_int): need override
to_int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
2008-12-29 13:29:12 +00:00 |
|
mame
|
7e6dd6142e
|
* test/ruby/test_rand.rb: add tests to achieve over 95% test coverage
of random.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
2008-03-25 15:56:36 +00:00 |
|
akr
|
c47ca1f02f
|
add test_rand_0x100000000.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
2005-02-07 16:11:14 +00:00 |
|
akr
|
943e67ef97
|
* random.c (init_by_array): imported from mt19937ar-cok.tgz.
(genrand_int32): ditto.
(genrand_real): replaced with genrand_res53 in mt19937ar-cok.
(rand_init): support bignum for longer seed.
(random_seed): generate longer seed.
(make_mask): new function.
(limited_rand): ditto.
(limited_big_rand): ditto.
(rb_f_rand): call limited_rand and limited_big_rand.
[ruby-dev:25403]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
|
2005-01-04 17:38:39 +00:00 |
|