The first 4936 tickets have 27,303,493 chances to win. The rest of the tickets have 27,303,492. Very small but a slight bias towards the earlier tickets. To be even the max valid random number is 40270 * 27303492 - 1 = 1099511622839. Just exclude numbers larger than that.
All I have to say to this..0xFFFFFFFFFF you... (thought someone could make a math joke in the thread that wasn't also a math fail...)
The official block to determine the winning ticket number will be 171,450.blockexplorer.com
Short link: http://blockexplorer.com/b/171450
Hash 000000000000099e18b84b47fba8ee569f117c8545fa375f33381bb7514187e3funkymunky ABE site
Short Link: http://blockexplorer.funkymonkey.org/b/EGfzyHgKQ
Still needs to be confirmed some more to avoid the chance of a blockchain reorg, but I think we have our winner.
First ticket 0; Last ticket 40619; total number of tickets 40620; for those with the same spreadsheet as me.
last-10 of hash: b7514187e3http://we.lovebitco.in/lottery.html
: Winning ticket number 11131
Calculator Method from page 3:
Verify the block hash from two independent sources (ideally one being your local blockchain),
Open Windows Calculator. Select View->Programmer. Select "Hex" radio button,
Paste last 10 digits of hash into calculator (b7514187e3
Press "Dec" radio button to convert to decimal (787342264291
Enter number of tickets (40620
See winner (11131
The winner is on spreadsheet line 36: