Feb 28
Bil Corry Lasso 9.2.6 math_random
Feb 28, 2014; 13:54
Bil Corry
Lasso 9.2.6 math_random
I have the below sample code, and when I play the game, it has the same
question several times in a row, which is odd since it generates two random
numbers, and they are both identical several times in a row.
Thoughts?
<html>
<head>
<title>awesome game</title>
</head>
<body>
[
local(a) = math_random(9,0);
local(b) = math_random(9,0);
]
[
if(action_param('canswer')->size > 0);
if(action_param('canswer') == action_param('answer'));
'Correct!';
else;
'Sorry, your answer is incorrect! It should be '+action_param('canswer');
/if;
'<br><br>Try another one!';
/if;
]
<form method="post">
<input type="hidden" name="canswer" value="[#a + #b]">
What is [#a] + [#b]? <input type="text" name="answer" value="">
</form>
</body>
</html>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Feb 28
Steve Piercy - Web Site Builder Re: Lasso 9.2.6 math_random
Feb 28, 2014; 05:21
Steve Piercy - Web Site Builder
Re: Lasso 9.2.6 math_random
Feb 28
Brad Lindsay Re: Lasso 9.2.6 math_random
Feb 28, 2014; 08:46
Brad Lindsay
Re: Lasso 9.2.6 math_random
Feb 28
Jonathan Guthrie Re: Lasso 9.2.6 math_random
Feb 28, 2014; 09:47
Jonathan Guthrie
Re: Lasso 9.2.6 math_random
Feb 28
Jonathan Guthrie Re: Lasso 9.2.6 math_random
Feb 28, 2014; 10:05
Jonathan Guthrie
Re: Lasso 9.2.6 math_random
Feb 28
Kyle Jessup Re: Lasso 9.2.6 math_random
Feb 28, 2014; 10:07
Kyle Jessup
Re: Lasso 9.2.6 math_random
Mar 01
Bil Corry Re: Lasso 9.2.6 math_random
Mar 01, 2014; 16:48
Bil Corry
Re: Lasso 9.2.6 math_random
Mar 01
Jonathan Guthrie Re: Lasso 9.2.6 math_random
Mar 01, 2014; 10:53
Jonathan Guthrie
Re: Lasso 9.2.6 math_random