Subject: Re: There's Gotta Be A Better Way #3: To One Or Not To One
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 20 Dec 2006 06:26:58 -0600
Newsgroups: comp.lang.lisp
Message-ID: <8tqdnT59maWPsRTYnZ2dnUVZ_uyknZ2d@speakeasy.net>
Ron Garret <rNOSPAMon@flownet.com> wrote:
+---------------
| Ken Tilton <kentilton@gmail.com> wrote:
| > * yes, I am posthumously declaring token count to be the deciding
| > metric, probably obviating the need for the ban on branching.
|
| (logior 1 (- (random 2)))
+---------------
Shorter by one token [even more if you count the parens]:
(expt -1 (random 2))
-Rob
-----
Rob Warnock <rpw3@rpw3.org>
627 26th Avenue <URL:http://rpw3.org/>
San Mateo, CA 94403 (650)572-2607