Skip to content

Instantly share code, notes, and snippets.

@gumdropsteve
Last active December 7, 2020 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gumdropsteve/0c87769788a6f465b0deb67ea4c0b9b5 to your computer and use it in GitHub Desktop.
Save gumdropsteve/0c87769788a6f465b0deb67ea4c0b9b5 to your computer and use it in GitHub Desktop.
deck <- read.csv('https://github.com/gumdropsteve/datasets/raw/master/deck.csv')
set.seed(42) # so we get the same 'random' shuffle every time (don't do this IRL unless you have a reason to)
rows <- sample(nrow(deck))
shuffled_deck <- deck[rows, ]
shuffled_deck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment