-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlxRandom: add shuffle(), deprecate shuffleArray() #1947
Conversation
Deprecate FlxRandom#shuffleArray() in favour of this. Fixes HaxeFlixel#1914.
Wow, you even added unit tests. 👍 |
Leaving the |
It seems that leads to another deprecation warning though?
|
I see... thanks. I added an exclude to the checkstyle config, but CodeClimate doesn't seem to care much, not sure why... The custom |
Sorry, first contribution 😊 Thanks for cleaning up! |
To be fair, that |
Deprecate FlxRandom#shuffleArray() in favour of this.
Fixes #1914.
Unlike
shuffleArray()
, I decided not to return the shuffled array, to make it crystal clear from the API that the array is modified in place rather than cloned.