POV-Ray : Newsgroups : povray.off-topic : Interesting dice problem : Re: Interesting dice problem Server Time
6 Sep 2024 03:14:51 EDT (-0400)
  Re: Interesting dice problem  
From: Charles C
Date: 15 May 2009 03:40:00
Message: <web.4a0d1bc51d068a6acac4259f0@news.povray.org>
Warp <war### [at] tagpovrayorg> wrote:
> Charles C <nomail@nomail> wrote:
> > Still ignoring that RPS isn't completely random:  This wouldn't seem very
> > efficient to me but it's definitely possible to simulate a die with any number
> > of sides playing Rock-Paper-Scissors.  For each player generate a binary number
> > based on RPS wins or losses against any other person (opponent or not*).
> > Discard the entire set and re-do if the result is zero or exceeds the number of
> > die-sides simulated.
>
>   But I think it could be made more efficient by noting that RPS can actually
> be used to roll random numbers between 1 and 3...
>
> --
>                                                           - Warp

I suppose base 3 would run up the many-sided-die quicker than base 2.  ...Using
those ties to be more efficient.  There's some irony there. :-)

Charles


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.