I don't truly know how random this will be, because I don't know what the formula is that scratch uses (pick random __ to __). However, I'm pretty sure it will be random enough so that it won't matter. You can choose between a coin flip or a dice roll. Comment if you want to suggest any other probability. For the coin flip, you can click the coin to choose how many times you want to flip it.
Updates: 9/1/2017: Release. I made this in 7 minutes by the way, so it's bad. 9/8/2017: Fixed it up, made it work correctly, added total # of flips, and added a percentage next to the values. 9/8/2017: Added a "clear" button, added a "flip coin 50x" button, and changed the position of the coin. 10/24/2017: Added custom # of flips.