Skip to content

Instantly share code, notes, and snippets.

@bwmarkle
Created August 8, 2022 17:43
Show Gist options
  • Save bwmarkle/17a62d0c1d9db61134e4f9380b5effdb to your computer and use it in GitHub Desktop.
Save bwmarkle/17a62d0c1d9db61134e4f9380b5effdb to your computer and use it in GitHub Desktop.
constant int deckSize := 52
for i from 1 to deckSize
j := i + randomInt(deckSize + 1 - i) - 1
a.swapEntries(i, j)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment