No Luck, Or Just Probability

It is the day after Armageddon. Well, not exactly, just the day after the $1.6B USD PowerBall lotto jackpot. The good news is, there were three winners. And I am not planning to leave my job or how to spend millions of dollars. So, I wasn’t one of the three winners.

But, one winner was from California. A state I recently lived in. So may be I might still have a dog of sort in this fight after all. What if the winner is someone I know? It is might be time to get a bit ghetto and call them up. 🙂

Luck play no role in the outcome. Though we have called it luck if we had won. What is luck anyway? There is no scientific definition or test for luck that I know of. But what if there is? Not because science has found it or proven its existence, mean it doesn’t exist.

The odds where very very low, 1 in 280 million chance of winning. So low in face, that a friend of mine said you had a better probability of getting into an accident if you left home to go buy a lotto ticket, than you had of winning said lotto. 🙂 So if you won then you must have been really luck? Assuming of course you didn’t have an accident too?

But what if you had gotten into an accident and won also? Would that have been luck too?

My $1.5B-USD PowerBall Picker

So today is a big day in the USA. It is not an holiday or anything like that. But is is still big.

Today, the PowerBall Lotto is expected to top $1.5Billion dollar jackpot. That is a lot of $. So like many others, I wade into the crazy frenzy and bought some tickets. But I decided to up it a bit.

Since I let a machine, or rather a computer algorithm pick my numbers when I got the tickets. Why not just come home and implemented some quick code that would pick number too.

From the PowerBall lotto site, on how to play. They said that they pick 5 numbers from a drum of 69 balls. And each ball is numbered. So that must be 1 to 69, since I don’t think they would include 0. Then there is a last 6th number that is from a drum of 26 balls.

Here is screenshot of my code and a run to pick 5 sets of numbers:

Screen Shot 2016-01-13 at 7.14.26 PM

And here is the rather “complex” code in the Groovy programming language:

// pick some number for PowerBall Lotto

// a line is 6 number, 5 numbers between 1-69 and the 6th between 1 and 26

class Line{
int[] numbers;

void draw(){
numbers = new int[6]
Random rand = new Random();

numbers[0] = rand.nextInt((69 – 1) + 1) + 1
numbers[1] = rand.nextInt((69 – 1) + 1) + 1
numbers[2] = rand.nextInt((69 – 1) + 1) + 1
numbers[3] = rand.nextInt((69 – 1) + 1) + 1
numbers[4] = rand.nextInt((69 – 1) + 1) + 1
numbers[5] = rand.nextInt((26 – 1) + 1) + 1

String toString(){
println numbers

def l = new Line()
println l
println l
println l
println l
println l





1 Second Every Day

Yesterday I got a TED video about taking a 1sec video everyday for the rest of your life. That works out to about a 1hour video for the past 10yrs of your life. That seems too awesome to pass up.

So starting yesterday, I am taking at lease 1sec of video of my life. Since I work mostly at home, I don’t expect my videos to be very interesting, but maybe I will be surprise. I will see a year from now and ten years from now.

I am not using the mobile app or website to upload my videos. That is a personal decision. But if you like here are the links to the mobile apps and web site.