What you can make
Please see the movie before you start coding below.
First, prepare 10 image files , in my case these file names are 0.png, 1.png, 2.png …. 0.png.
Each image includes one number for one digit in slot machine.
Here is the code and explanation of how to code.
In the script, Array and generating random numbers are the main technique to complete the task.