You do not need to click the green flag. All you have to do is click on the Generate sprite and the program will start. Enter your min and max and they will appear on the screen. The program will generate a random number between them.
This project was only possible because the Scratch Team created the random from # to # block.