Not sure I understand, your old logic was fine I just said replace that line
Sadly my old logic didn't work and I did add the line and everything.
So I gave up and watch that YouTube video and it works but I have to click the first button to shuffle the sprite frames and the second button to show the random sprite.
But that's not what I want even though it's a progress so I tried to tweak it and make it on the start of the layout randomize and show the sprite but it won't work and I tried a lot of way still no progress 😣