Random has three parameters in TS 3.1 (see below)
The command I have is listed below and I am using TS 3.1. The code will run fine for thousands of loops then locks.
Parameters.multiGame.gameIndexRandom = Round(Random(0, Parameters.multiGame.gamesDepth-.01,0.0) )
Low = 0
High = Parameters.multiGame.gamesDepth-.01
Seed = 0.0 (Help says this is a random seed)
For Round I am rounding the random result using the default value (rounds towards zero (the default)). I still don't see anything wrong with this statement syntatically. I am willing to change it but don't see why it wouldn't work.
TS Help Files from 3.1:
Random(low, high,
)
This function returns a random number between low and high.
Parameter 1: A number specifying the lower limit for the random number.
Parameter 2: A number specifying the upper limit for the random number.
Parameter 3: An optional number the function uses to determine where in the virtual sequence of random numbers the function obtains its random numbers. When you seed the Random function with the same value, subsequent calls to Random return the same sequence of numbers. If you pass a seed value of 0.0, the function generates a seed value based on the current time. If you do not pass a seed value, the function returns the next number in the current sequence of random numbers.
Returns: The random number.
Round(number, )
This function rounds a number to an integer.
Parameter 1: The number to round.
Parameter 2: An optional parameter: how to round.
Pass 0 to rounds towards zero (the default).
Pass 1 to round away from zero.
Pass 2 to round towards positive infinity.
Pass 3 to round towards negative infinity.
Pass 4 to round to the nearest integer. If the number is exactly between two numbers, rounds to the nearest even integer.
Returns: The rounded number.
Matthew Fitzsimons
Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison