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?