deck = (1..52).to_a

# shuffle
deck = deck.sort_by { rand }

# cut
x = rand(52)
deck = deck[x..-1] + deck[0...x]   # notice differing amounts of dots