From: Jason Bornhoft Date: 2007-10-20T10:38:20+09:00 Subject: Re: Create matrix with random numbers > Not sure what you want exactly, but, maybe... > > require 'matrix' > a, b = 2, 3 > m = Matrix[*(Array.new(a) {Array.new(b) {rand}})] > > Todd What I would ideally like is to be able to specify the size of the matrix and then have a random function populate the matrix with real integers or, eventually, complex numbers. Thanks for the guidance... -- Posted via http://www.ruby-forum.com/.