I have a game with 10 sprited. Sprite names are: sprite 1, sprite2, sprite3, etc
[When 1 click one of the sprites i want to the the sprite to a random sprite.
I tried generating a number from 1 to 10. For example 2 is generated and then turn this in to a string “sprite2” and then set sprite. I can’t connect the string and the setsprite.
How vcan i do this?
https://snipboard.io/RTfJyp.jpg](https://snipboard.io/RTfJyp.jpg)