Quote from: monkey0506 on Thu 06/07/2017 12:49:27
There really isn't a general consensus in the programming community of what range "random" should return, even if both min and max are explicit. In AGS, one can achieve an inclusive range [min, max] by using:Code: ags int rand = Random(max) + min;
Shouldn't the code be
int rand = Random(max-min) + min;
instead of what you wrote? So for example A range of 0-2 inclusive would be Random(2) + 0 while 1-2 inclusive would be Random(1) + 1