Before the race starts, click the green flag. When you want the race to start, press the Go button. The sprites will race until one of them wins. If you want to do another race, click the green flag then the Go button. Do it many times because the results are randomized.
This was for a school project, I hope to make many other things on Scratch. Also, there is a chance that they can tie, just letting you know.