You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 'shuffle' function has a bug when it fails to return an array that is shuffled.
The same incorrect behavior is occurring on the documentation object as well.
The text was updated successfully, but these errors were encountered:
EgizianoEG
changed the title
Bug: random.shuffle() function does not work as expected
Bug: random.shuffle() function is broken and does not work as expected
Sep 18, 2023
shuffle does not manipulate the original array. Instead the changes are made to a new one that is returned. Your code will work if you make this change:
The 'shuffle' function has a bug when it fails to return an array that is shuffled.
The same incorrect behavior is occurring on the documentation object as well.
Reproducible code:
The text was updated successfully, but these errors were encountered: