From: brabuhr@... Date: 2008-11-12T23:54:06+09:00 Subject: Re: [QUIZ] Sudoku Generator (#182) On Tue, Nov 11, 2008 at 11:12 PM, Kaz Kylheku wrote: > On 2008-11-11, brabuhr@gmail.com wrote: >> 64 times >> pick a random spot >> skip it if it is already a hole > > Is it really so difficult to make a sequence of integers from 0 to 80, scramble > its order (e.g. using the Knuth random exchange method) and then take > successive elements from this sequence as the locations on the Sudoku > board? No, it's not difficult at all. (But maybe less fun ;-) Doesn't Ruby 1.9.1 have something like: (0..80).sample(n)...