The way the RANDOM constant is defined in Calc, it generates a random number but by default UpdateRandom=0, so after the initial update, the RANDOM value is static. You can throw this value in to a variety of expressions and math functions.
However, when subtraction is used and the Formula is grouped with parentheses, the RANDOM constant becomes dynamic as if UpdateRandom=1 (the value changes every update).
Example Bugged Code:
Code: Select all
[CalcRandom]
Measure=Calc
Formula=(RANDOM-10)
; or, similarly...
Formula=(10-RANDOM)
Code: Select all
Formula=RANDOM-10
Formula=10-RANDOM
Formula=(-10+RANDOM)
Formula=(RANDOM+10)
Formula=(RANDOM*10)
Formula=(RANDOM/10)