From: Robert Klemme Date: 2009-12-02T23:45:31+09:00 Subject: Re: Advice - Printing All Options 2009/12/2 Marnen Laibow-Koser : > Wood Yee wrote: >> Hey - one more thing. How can I go further and make this more random. I >> ran the program and got this: >> >> Rear/Top/Left >> Rear/Top/Right >> Rear/Bottom/Left >> Rear/Bottom/Right >> Mount/Top/Left >> Mount/Top/Right >> Mount/Bottom/Left >> Mount/Bottom/Right >> Knee/Top/Left >> Knee/Top/Right >> Knee/Bottom/Left >> Knee/Bottom/Right >> Side/Top/Left >> Side/Top/Right >> Side/Bottom/Left >> Side/Bottom/Right >> Turtle/Top/Left >> Turtle/Top/Right >> Turtle/Bottom/Left >> Turtle/Bottom/Right >> Guard/Top/Left >> Guard/Top/Right >> Guard/Bottom/Left >> Guard/Bottom/Right >> >> >> Can I drill down even further? > > What do you mean? > >> Example - Guard/Bottom/Right, then >> Turtle/Top/Right, etc? Thanks! > > If you just want random order, that's easy.  Check out sort_by and rand. 1.9 also has #shuffle. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/