{"action":"created","issue":{"url":"https://api.github.com/repos/okamstudio/godot/issues/2576","labels_url":"https://api.github.com/repos/okamstudio/godot/issues/2576/labels{/name}","comments_url":"https://api.github.com/repos/okamstudio/godot/issues/2576/comments","events_url":"https://api.github.com/repos/okamstudio/godot/issues/2576/events","html_url":"https://github.com/okamstudio/godot/issues/2576","id":110053440,"number":2576,"title":"[Feature Request] Shuffle method for Array","user":{"login":"seadra","id":9574367,"avatar_url":"https://avatars.githubusercontent.com/u/9574367?v=3","gravatar_id":"","url":"https://api.github.com/users/seadra","html_url":"https://github.com/seadra","followers_url":"https://api.github.com/users/seadra/followers","following_url":"https://api.github.com/users/seadra/following{/other_user}","gists_url":"https://api.github.com/users/seadra/gists{/gist_id}","starred_url":"https://api.github.com/users/seadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadra/subscriptions","organizations_url":"https://api.github.com/users/seadra/orgs","repos_url":"https://api.github.com/users/seadra/repos","events_url":"https://api.github.com/users/seadra/events{/privacy}","received_events_url":"https://api.github.com/users/seadra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-06T16:58:54Z","updated_at":"2015-10-07T22:12:56Z","closed_at":null,"body":"Would be just great to have a shuffle method (like [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle)) defined on array."},"comment":{"url":"https://api.github.com/repos/okamstudio/godot/issues/comments/146347692","html_url":"https://github.com/okamstudio/godot/issues/2576#issuecomment-146347692","issue_url":"https://api.github.com/repos/okamstudio/godot/issues/2576","id":146347692,"user":{"login":"seadra","id":9574367,"avatar_url":"https://avatars.githubusercontent.com/u/9574367?v=3","gravatar_id":"","url":"https://api.github.com/users/seadra","html_url":"https://github.com/seadra","followers_url":"https://api.github.com/users/seadra/followers","following_url":"https://api.github.com/users/seadra/following{/other_user}","gists_url":"https://api.github.com/users/seadra/gists{/gist_id}","starred_url":"https://api.github.com/users/seadra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seadra/subscriptions","organizations_url":"https://api.github.com/users/seadra/orgs","repos_url":"https://api.github.com/users/seadra/repos","events_url":"https://api.github.com/users/seadra/events{/privacy}","received_events_url":"https://api.github.com/users/seadra/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T22:12:56Z","updated_at":"2015-10-07T22:12:56Z","body":"I already implemented Fisher-Yates shuffle in GDScript (BTW his code is wrong), that's not the issue.\r\n\r\nThe issue is the size of data I'm shuffling (hence the performance concern), and depending on the size of the world, it can be pretty huge.\r\n\r\nRight now, whenever I write some loop which might be large, I'm asking myself \"how bad will this scale\" because I have no idea at all. I really wonder how performant GDScript is, and this definitely deserves a mention in the docs."}}