From: ts Date: 2003-01-26T21:48:21+09:00 Subject: Re: Bignum + rand() >>>>> "Y" == Yukihiro Matsumoto writes: Y> rand() should work for any numbers. Could you tell me more info to Y> reproduce the exception? pigeon% ./ruby -ve 'p rand(9999999999999999999999999)' ruby 1.8.0 (2003-01-20) [i686-linux] -e:1:in `rand': bignum too big to convert into `int' (RangeError) from -e:1 pigeon% rb_f_rand() has only the case T_FLOAT, T_NIL and default (NUM2LONG give the error) Guy Decoux