From: Run Paint Run Run Date: 2009-08-03T16:24:28+09:00 Subject: [ruby-core:24708] [Bug #1859] Random#int Segfaults with Non-Integer Ranges Issue #1859 has been updated by Run Paint Run Run. Thanks, nobu. Could you double check the bounds for a Float..Integer Range? #int(3.1..5) seems to be resolved to #int(3...5): >> prng = Random.new(2) => # >> 20.times.map { prng.int(3.1..5) } => [3, 4, 4, 3, 3, 4, 3, 4, 3, 4, 3, 4, 4, 4, 4, 4, 4, 4, 3, 3] >> prng = Random.new(2) => # >> 20.times.map { prng.int(3..5) } => [3, 4, 3, 5, 5, 3, 5, 4, 4, 5, 3, 3, 3, 4, 5, 3, 5, 5, 5, 4] ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1859 ---------------------------------------- http://redmine.ruby-lang.org