[REBOL] Re: Re Bug in delete?
From: carl:cybercraft at: 1-Mar-2002 19:40
On 01-Mar-02, [SunandaDH--aol--com] wrote:
> While we're chipping in bugs in random, spot the difference in these
> (reported to Feedback a while back)
> random 2 ;; integer -- returns 1 or 2
> random 2x2 ;; pair -- returns 1x1, 1x2, 2x1 or 2x2
> random 2.2.2 ;; tuple -- returns 0.0.0 thru 1.1.1
Interesting. Here's another version of 'forever for you...
a: 1.1.1 while [a/1 <> 255][a: random 255.255.255]
I guess with tuples a special case is needed so that random 255
returns from 0 to 255 instead of from 1 to 255.
--
Carl Read