Joel VanderWerf wrote: > Martin DeMello wrote: > > Here is the dirtiest, wrongest, ugliest way to do it: but that is worked for me . > module ObjectSpace > p ObjectSpace.random_object(String) > p ObjectSpace.random_object(Float) thank you to all -- Posted via http://www.ruby-forum.com/.