function UniformRandomBetweenNegativeOneAndOne() return -1.0 + rand() * 2.0If you just want the three integer values -1, 0 and 1
function RandomIntegerBetweenNegativeOneAndOne() local lnRand lnRand = rand() return iif( lnRand <= 1.0 / 3.0, -1, iif( lnRand <= 2.0 / 3.0, 0, 1 ) )>I've used the example from help on how to generate random numbers. Now I need a random number between -1 and 1 (integer -1,0,1) and cannot figure out how to modify the example to give negative and positive numbers. Any tips?