From: ThoML Date: 2008-07-04T01:42:11+09:00 Subject: Re: pseudo-randomize an array in a consistent order On Jul 3, 4:56 pm, Max Williams wrote: > Does anyone know how to pseudo-randomize an array (eg with a seed) so > that you get the same order every time you do it? ruby19 has a Array#shuffle method: irb(main):001:0> Kernel.srand(1); [1,2,3,4,5].shuffle => [2, 4, 1, 5, 3] irb(main):002:0> Kernel.srand(1); [1,2,3,4,5].shuffle => [2, 4, 1, 5, 3]