Gregory Brown wrote:
> I'm far too lazy.
> 
> I'd just do
> 
> a = [[0]*5]]*5

But that does not quite allow the free use of method calls.  e.g. dice 
rolling:

p [[rand(6) + 1] * 4] * 4
[[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]

p Array.multi(4, 4) {rand(6) + 1}
[[6, 3, 1, 3], [4, 3, 1, 3], [1, 1, 5, 3], [6, 4, 2, 2]]

-- 
Posted via http://www.ruby-forum.com/.