actions
Nuno Silva
nunopedrosilva@yahoo.com
Wed, 4 Dec 2002 05:54:43 -0800 (PST)
--0-2093300856-1039010083=:8017
Content-Type: text/plain; charset=us-ascii
I'm using an action that generates a random number, for the user to discover it. each time he guesses, if the number is diferent that the one generated, it is suposed to call itself again to try again, but each time I call it, it generates the number again.
how can I overcome this?
sample of the code:
descodificador = do c1 <- gera
c2 <- gera
c3 <- gera
c4 <- gera
"code in the middle to check if the number is equal"
if not than go down...
descodificador
---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-2093300856-1039010083=:8017
Content-Type: text/html; charset=us-ascii
<P>I'm using an action that generates a random number, for the user to discover it. each time he guesses, if the number is diferent that the one generated, it is suposed to call itself again to try again, but each time I call it, it generates the number again.</P>
<P>how can I overcome this?</P>
<P>sample of the code:</P>
<P>descodificador = do c1 <- gera <BR> c2 <- gera <BR> c3 <- gera <BR> c4 <- gera </P>
<P> "code in the middle to check if the number is equal"</P>
<P> if not than go down...</P>
<P> descodificador</P>
<P> </P>
<P> </P><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-2093300856-1039010083=:8017--