Skip to content

Instantly share code, notes, and snippets.

@alcides
Forked from tommorris/gist:61467
Created April 23, 2009 12:54
Show Gist options
  • Save alcides/100485 to your computer and use it in GitHub Desktop.
Save alcides/100485 to your computer and use it in GitHub Desktop.
(1..49).to_a.sort_by{ rand }.slice(0..6).sort
from random import shuffle
lottery_balls = range(1,49)
shuffle(lottery_balls)
lottery_balls[0:6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment