Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Math Functions

Quote Reply
Math Functions
Am trying to do the following:
Have created a global that randomly selects a number between 1 and 10.

Am trying to add this to field 1 for example <%field1%> + <%randomNumber%> = Answer

The problem is I want to duplicate it twice, once without answers and the second time with answers. The problem I'm having is the answers for the second set is always different due to the numbers selected is also random... is there any way to duplicate in a loop to have both with and without answers using the excact same random number on the same page???

Thanks,
Dinky

</not a clue>
Quote Reply
Re: [Dinky] Math Functions In reply to
How about just saving the number to a variable?
<%set number = $randomNumber%>

Adrian