I must have an error somewhere, cause I am not seeing losses when I run this. I have the script set to end on a win, but even before I did that it would always come up profitable. (Always being equal to 99.x%+) 
Oh well, I suppose I've devoted enough time to this, anyone needs anything hit me up at 
[email protected]
Edit - you can try a javascript version at 
http://agentcash.com/gfy/scripts/roulette.htm  just change the number of picks to 20 to see what I mean.