From: Hal Fulton Date: 2003-11-01T06:14:42+09:00 Subject: Re: Since today is October 31... Wejn wrote: > Hello, > > >>srand 0 >>puts "pH p!aoHalnyweel".split("").sort {|x,y| rand <=> rand }.join > > > hmm, it doesn't work for me :-( > > irb(main):001:0> srand 0 > 0 > irb(main):002:0> puts "pH p!aoHalnyweel".split("").sort {|x,y| rand <=> rand }.join > HHypao!new llpea > nil > irb(main):003:0> VERSION > "1.6.7" No, that's because the PRNG changed with 1.7.x If you are using 1.6.7, you are missing a few nice features. :) > PS: It's strange to have Halloween one day after Christmas. :-) > (Clue: 24 dec == 30 oct) Yes, I first heard that Halloween was Christmas from Richard Hamming (of Hamming Code fame). Not directly of course. He wrote the coding theory textbook I used in college. Hal