HaxeFlixel/flixel — pull request #1158 by steverichey (2014-06-06 19:28:55+00:00)
Title: FlxRandom: Fixed getObject(), made color() better.

Due to an error I made when refactoring `FlxRandom`, `getObject()` would always return the 0th element of the array unless you specified an end index. The `StartIndex` and `EndIndex` parameters are now nullable integers, and if left unspecified, will be 0 and `Object.length - 1`, respectively.

Also, I had been frustrated with the complexity of `color()` and `colorExt()`, and finally implemented a single function (now just `color()`) which accepts a single `ColorOptions` object with all the settings previously individually set by each parameter.