Skip to content

Instantly share code, notes, and snippets.

@gumdropsteve
Last active December 7, 2020 11:54
Show Gist options
  • 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