Wednesday, July 1, 2009

$90M lost and a bigger disappointment

Well the biggest disappointment of not winning the $90M OzLotto last night was discovering the the "Online Quickpick" used a simple JavaScript function to pick my numbers for me.

The feeling of excitement that my quick pick numbers were calculated by some massive VAX basic machine in the depths of the basement at Lotto Central were dashed by the single line of code ((Math.random () * (thisEnd - thisStart + 1)) + thisStart).

Anyway, not to be beaten, I set about finding out what my chances were that this simple script could reproduce this weeks lotto numbers.

I don't know what I was looking for, I guess I will know when I find it, but here are the results so far.



Now there is an obvious error in my program (this is left up to the home viewer to find and comment on) and I only let it run for 8 hours before I started to worry that my laptop may over heat.

Thus I intend to let it run over the weekend at work and we will see how we do next week in the lotto !!!

PS: note that all three browsers were refreshed with the script in quick succession (IE, the FF the GC with less than a second between), which leads the first result of the exercise to be the difference in counts after 8 hours !!



::UPDATE::

I have had this running at work for the last 9 days and still no success.

No comments: