On Wednesday 06 November 2002 10:10 am, Eike Lange wrote:
On Wed, Nov 06, 2002 at 09:53:34AM +0000, Andrew McCall wrote:
On Tuesday 05 November 2002 4:17 pm, Frank Heckenbach wrote: if (iGuess > 0) or (iGuess < 101) then { do my code } Try writing if (iGuess > 0) and (iGuess < 101) then { do your code }
Oh man! I can't believe I spent about 40 minutes yesterday looking at that before starting to think that it was actually some weirdo thing with Pascal I didn't remember! I can't believe I didn't realise I was doing it totally wrong :) Thanks, thats working now.
Also is there a random number generator in gpc? I have hardcoded the value for this program, I want to play with it being random too :)
Just call Random from the GPC unit.
I have looked for a random like function or procedure, but can't find one. How do I do what you suggest? Any docs? -- Thanks, Andrew McCall Internet/Linux System Administrator I.C.T. Division Oldham MBC Civic Centre West Street Oldham OL1 1UU Tel : 0161 911 3990 Fax : 0161 911 3998 Email : it.andrew.mccall@oldham.gov.uk ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. www.oldham.gov.uk **********************************************************************