Random variable values
March 13, 2008 12:00 AM
2 questions about random variable values:1st: I see you can set a variable to initially be random, and this retains the randomly generated value throughout a session. But is there a way to reset this single variable when each page loads? The only way I see to do this is with a "Reset All Variables" action. This won't work because I have other variables I need to retain their values.2nd: Part of what I'm trying to achieve is assigning a random value from 1 to 4 onto 4 buttons. To do this I need 4 variables for each button that don't repeat (can't have 2 buttons with a value of 3, etc). I came up with code to achieve this and created actions in this order all set to occur On Show:
In theory this should work perfectly, but Lectora is ignoring the if statements and my values are higher than they should be (1-8). Is this a bug, or am I doing something wrong??? Any insight would be appreciated!
Discussions have been disabled for this post