﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2686	Random to return max value when min equals max.	anonymous	Jon	"This has been rejected previously but I don't think it was fully justified. With the Random function, I suggest returning the maximum value when it is equal to the minimum value, regardless of whether you set the error flag or not. I don't personally think it should be considered an error, but maybe removing the error will break too many scripts.

Hopefully the positive outcome of such a small change would outweigh any negatives. The following code is nice and easy regatds syntax, but it currently breaks on the final iteration.

{{{
For $i = $iMin To $iMax
	$iRandom = Random($i, $iMax, 1)
Next
}}}
"	Feature Request	closed	3.3.13.10	AutoIt		None	Completed	Random	
