On 2009-12-29, Panagiotis Atmatzidis <atma / convalesco.org> wrote:
> while pipi == TRUE
>   if x > 1950 || x < 2000
>      return  x
>      pipi = FALSE

Hmm.  Looks as though you want the range 1951..1999.  Well, that's easy
enough:

	rand(49) + 1951

(Note that rand(49) returns anything from 0 to 48, inclusive.)

-s
-- 
Copyright 2009, all wrongs reversed.  Peter Seebach / usenet-nospam / seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!