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 }
Your condition is always true:
a) 0 is same as 0 (false) b) 0 is lower than 101 (true) a) or b) is true
Similar with 10000.
Try writing if (iGuess > 0) and (iGuess < 101) then { do your code }
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.
Eike