Random generator not so random?

@Andre_Santos
Welcome to the forum

give try at following:
Define a variable: name: myRandom | DataType: System.Random | DefaultValue: new Random()

Whenever you want to generate a random number use the following statement:

myRandom.Next() Mod dtData.RowCount

we just let us generate a more wide range of numbers and with the modulo operation we bring it to the restricted slot. When doing this we encountered a better distributed random result

1 Like