Received: from localhost (localhost [127.0.0.1]) (uid 1) by cvs.lp.se with local; Sat, 01 Mar 2003 00:49:06 +0100 X-RT-Loop-Prevention: cvs.lp.se Message-Id: Subject: Re: [cvs.lp.se #7] Random placement with DontMoveOff patch In-Reply-To: Managed-BY: RT 2.0.14 (http://bestpractical.com/rt/) From: "Bjorn Knutsson via RT" RT-Ticket: cvs.lp.se #7 X-Mailer: Perl5 Mail::Internet v1.56 Reply-To: ctwm-bugs@free.lp.se Precedence: bulk RT-Originator: bjornk@dsl.cis.upenn.edu To: levitte@lapdog.mobile.levitte.org Cc: ctwm@free.lp.se Sender: daemon Date: Sat, 01 Mar 2003 00:49:06 +0100 On 28 Feb 2003 17:34, Richard Levitte via RT wrote: > > I didn't aooky this patch as is, but made a change along the same line. The main difference is that I didn't want to use rand(). Instead, as long as 'available' is less than 100 for each coordinate, I set that coordinate to half of 'available', and if 'available' is larger than that, I set the corrdinate to 50. Well, you know this is triggered only if you have RandomPlacement defined, right? So I figured a rand() was appropriate. ;-) But either way is fine. /Björn