How to make a sprite random choice system

Something like this?

Here is the same code written using arrays:

3 Likes