Mishtavince
Member
Hello,
Could somebody please help me out with coding a 'Random number generator' in vijeo citect.
For example if i create an analog Local variable, i would want that variable number to change every 2to3 secs with numbers between 0 to 240.
I tried using the Rand() function, all i got it to do is change from 0 to 1. I am a bit weak and new to citect as I've been working with it for barely a month.
I would really appreciate any input or an example code on this.
Thank You.
Could somebody please help me out with coding a 'Random number generator' in vijeo citect.
For example if i create an analog Local variable, i would want that variable number to change every 2to3 secs with numbers between 0 to 240.
I tried using the Rand() function, all i got it to do is change from 0 to 1. I am a bit weak and new to citect as I've been working with it for barely a month.
I would really appreciate any input or an example code on this.
Thank You.