https://community.bistudio.com/wiki/random
In SQF, when using (within the same scope) random syntax-2 prior to random syntax-1, syntax-1 will consistently produce the same result number.
Seems like syntax 1 behaves like syntax 3 in this instance.
https://community.bistudio.com/wiki/random
In SQF, when using (within the same scope) random syntax-2 prior to random syntax-1, syntax-1 will consistently produce the same result number.
Seems like syntax 1 behaves like syntax 3 in this instance.
Arma 3 Console version 2.10.149954
1. Open the debug console
2. Paste in this script to the console and execute it on the server multiple times:
random [1,5,10];
3. Repeat step 2 but replace the current script with the following:
random 10;
4. Repeat step 2 again but replace the current script with the following:
random [1,5,10]; random 10;