On Thu, 24 Feb 2005 08:19:19 +0900, Navindra Umanee
<navindra / cs.mcgill.ca> wrote:
> Brian Schröäer <ruby.brian / gmail.com> 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

regards,

Brian

--
Brian Schröäer
http://ruby.brian-schroeder.de/