Generate random number

Samuel Pittet 2 years ago in IQANdesign updated by Gustav Widén (System support) 2 years ago 1

Hi, is it possible to generate a random number in realtime in a IQAN Design program? I'm using a MD4-10 and a MC43-FS in my system.

I do not see such a feature/function at the moment.

Basically, generating a random number between a specified interval of numbers. 


Yes, there is the function Random that you can use either in Qcode or Object list. 

It gives a random integer between 0 and the operand - 1.

For example: 

Radom(10) gives a random integer number between 0 and 9.