POV-Ray : Newsgroups : povray.off-topic : Interesting dice problem : Re: Interesting dice problem Server Time
6 Sep 2024 03:17:28 EDT (-0400)
  Re: Interesting dice problem  
From: Warp
Date: 14 May 2009 17:43:46
Message: <4a0c9092@news.povray.org>
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


Post a reply to this message

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