From: Caio Tiago Oliveira Date: 2005-02-25T06:21:01+09:00 Subject: Re: ANN: 2005 International Obfuscated Ruby Code Contest (IORCC) Brian Schr�der, 24/2/2005 05:26: > On Thu, 24 Feb 2005 08:19:19 +0900, Navindra Umanee > wrote: >> Brian Schr�der wrote: >> > That evaluates to: >> > $ ruby -e 'srand 52019;puts"Azzp!bljqkmw!Xrfy!nmgaiq!". >> > unpack(%q(c*)).map{|x|x^rand(16)}.pack("c*")' >> > Gwvz&baf|ej}%T{a|.ikhbcw) >> > >> > And I thought it was about obfuscating the code, not the answer ;) >> >> So ruby -e 'srand 52019; puts rand(16)' prints 6 for you, not 11? >> >> Maybe it's only guaranteed to be deterministic on a particular >> machine. Hey, I guess you ask for random, you get random! >> >> Cheers, >> Navin. >> >> > > $ ruby -e 'srand 52019; puts rand(16)' > 6 11 for me (WinXP).