From: Matthew Moss Date: 2006-03-17T06:06:48+09:00 Subject: Re: Card tricks with Ruby 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