ScratchData LogoScratchData
Back to jvvg's profile

Lottery Simulator

JVjvvg•Created December 14, 2020
Lottery Simulator
43
33
576 views
View on Scratch

Instructions

Click the green flag to start with $10,000, then you can either play one week at a time (buying one $2 ticket per week) or just keep playing until you run out of money.

Description

This is a simulator for the Powerball, using the ticket prices, odds, and payouts from the Wikipedia page (https://en.wikipedia.org/wiki/Powerball). For the sake of simplicity I generate the tickets randomly without the PowerPlay option, and one ticket is bought per week. I also couldn't simulate the jackpot accurately, so I used the average payout from the Wikipedia page (though it's exceedingly unlikely anyone will actually win it). Moneybag image from https://commons.wikimedia.org/wiki/File:Emojione_1F4B0.svg by the Emojione project, licensed under CC BY-SA 4.0.

Project Details

Project ID463724280
CreatedDecember 14, 2020
Last ModifiedJanuary 6, 2022
SharedDecember 14, 2020
Visibilityvisible
CommentsAllowed