Message-Id: Date: Wed, 8 Oct 97 19:29 MET DST To: rdebelj AT wt DOT com DOT au, djgpp AT delorie DOT com References: <61canb$kjf$1 AT kurica DOT wt DOT com DOT au> Subject: Re: [Q] Whats wrong here... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT From: Georg DOT Kolling AT t-online DOT de (Georg Kolling) Precedence: bulk Robert Debeljakovic schrieb: > Ok, look at the following code.... > ---------------------------------------------------- > #include > #include > #include > > void Random(int MaxValue) > { > int x; > > x= -1; > if((x < 0)||(x > MaxValue)) i think this should be while((x<0)||(x>MaxValue))