List Shuffle Test

Reporter: RobertBColton  |  Status: open  |  Last Modified: March 28, 2019, 07:32:06 AM

Updated the CI test I just added for data structures to prevent #1107 from coming back. I wasn't sure if I could get this to work deterministically, that's why It was not included in #1650 with my other list tests. Apparently I can test it out reliably, hence I am submitting this pull request.

The documentation does explicitly state that list shuffle should be connected with the game's random seed.

NOTE: This function will shuffle the list items to the same positions every time the game is run afresh due to the fact that GameMaker: Studio generates the same initial random seed every time to make debugging code a far easier task. To avoid this behaviour use randomize at the start of your game. This is only true when testing and debugging the game, as the final executable package will not show this behaviour and will be random every play.
https://docs.yoyogames.com/source/dadiospice/002_reference/data%20structures/ds%20lists/ds_list_shuffle.html

RobertBColton  
No, you didn't and the CI is actually full of non-fatal errors about that. But yeah, thanks for putting the kibosh on this, you are right that #1324 is a blocker to merging this.
Please sign in to post comments, or you can view this issue on GitHub.