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
|