Powerball is an American lottery that has recently gained attention because the current jackpot (as of January 11, 2016) is the largest lotto prize in history, at about $1.5 billion (USD).
Powerball players choose 5 distinct numbers from 69 numbered white balls, and 1 one "Powerball" number from 26 numbered red balls. They win the jackpot if their five white ball choices match what was drawn in any order, and if they chose the correct "Powerball" number.
So the chances of winning the jackpot are 1 in (69 choose 5)*(26 choose 1)
or ((69*68*67*66*65)/(5*4*3*2*1))*26
, which is 1 in 292,201,338
No one won the jackpot in the most recent drawing on January 9, 2016, but perhaps someone will win the next drawing on January 13, 2016, 10:59 pm ET.
Challenge
Write a program or function that simulates a Powerball drawing, taking no input but outputting 5 distinct random numbers from 1 to 69 inclusive, and then one random "Powerball" number from 1 to 26 inclusive (which could be a repeat of one of the 5 initial numbers).
The "Powerball" number should always be the last number in the output, but otherwise the order of the first 5 numbers does not matter.
The 6 numbers should be output in decimal, either space separated or newline separated, with an optional single trailing newline. Commas, brackets, and other characters are not allowed in the output.
So these would be valid outputs (using the numbers from the last drawing):
32 16 19 57 34 13
32
16
19
57
34
13
All 292201338 possible outcomes should be possible with uniform probability. You may use built-in pseudo-random number generators and assume they meet this standard.
Here is an ungolfed reference implementation that works in Python 2 or 3:
import random
print(' '.join(map(str, random.sample(range(1,70), 5) + [random.randint(1, 26)])))
The shortest code in bytes wins.
Note that I have no affiliation with Powerball and don't really suggest that you play. But if you win anything from numbers generated by one of the programs here, I'm sure we'd love to hear about it. :D
5! = 5*4*3*2*1
ways to arrange 5 things, so you factor that out. \$\endgroup\$