2. Then you need a command button, click "Command Button" in the toolbox on the left, and drag the left mouse button on the right side of the form to draw:
3. Double-click this command button to demonstrate that the input code prints any random integer between 0 and 10. The formula for generating random integers in other ranges is "int ((upper and lower limit+1)*Rnd+ lower limit)", and if it is 1 to 53, it is "int (( 1-)
4. Run the program after writing, and every time you click the command button, a random integer between 0 and 10 will be printed on the form: