Unit 3 - Lesson 27 - Can you randomize objects

I have a student that wants to randomize what objects are chosen for her game. For ex: She has a list of fruits: apple, banana, orange, watermelon - when the player presses the space bar a fruit is picked. Is there a way to do this?


Yes, that can be done. Here’s an example. IT doesn’t use the spacebar, but I’m guessing by looking at this, your student can get an idea of how they might accomplish what they want to.

Random Animation


1 Like

Thank you. This will be helpful.