I have this counter that I set at Random(5)
I also have a string with 6 paragraph
At one point in the program I am setting the string to display the paragraph associated with the random counter value: "paragraph$( "MessagesList", value( "Hasard" ) )"
If I do that, the string displays the paragraph next to the chosen value (eg. if random(5) = 3 then paragraph = 4
So I changed the formula in order to assign the string to the random value minus one: "paragraph$( "MessagesList", value( "Hasard" ) - 1 )"
In this case most of the time the good paragraph is displayed except in the one instance where the counter has a 1 or 0 value. In both case the first paragraph will be displayed.
My assumption was that the default association should have been like this:
random = 0 then para = 1
random = 1 then para =2
and so forth
Can anyone help me figure this out?