Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [AGK] Shuffle Array

Author
Message
Virtual Nomad
Moderator
16
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 11th Jan 2022 02:22 Edited at: 11th Jan 2022 03:16
while i've seen other Shuffle functions, here's a different (and dynamic) approach:

basically, clone the array then feed the values back in randomly.
Virtual Nomad
Moderator
16
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 11th Jan 2022 03:15 Edited at: 11th Jan 2022 03:59
Deck of Cards:

Attachments

Login to view attachments

Login to post a reply

Server time is: 2022-09-30 17:14:06
Your offset time is: 2022-09-30 17:14:06