On 11/24/05, bulia byak <buliabyak@...400...> wrote:
On 11/23/05, Peter Moulder <Peter.Moulder@...38...> wrote:
Tim Dwyer from the office next to mine has been working on code to move rectangles by the minimal amount enough that they no longer overlap.
I have a file where the result of Remove Overlaps is unpredictable. I select all in that file and do Remove Overlaps, it gives me one of two configurations randomly. I then undo and do it again, and I can get the same configuration or another one. Is this kind of behavior normal for this algorithm?
Back in my school days when I was programming in Pascal it was always a good idea to enable randomizer before using random, otherwise it always gave the same result ;-)
I think this is exactly the same case with extrapolation to C/C++.
Alexandre