This site requires JavaScript, please enable it in your browser!
Greenfoot back
Iz.\uo
Iz.\uo wrote ...

2019/3/24

Can I place an object randomly by choosing from ten coordinates I set in a list?

Iz.\uo Iz.\uo

2019/3/24

#
I need help ASAP I have to finish this up today, and if i get this code right I will get an A+!!!
Super_Hippo Super_Hippo

2019/3/24

#
If you already set up the list, you only need to get a random number (Greenfoot.getRandomNumber(10)) and use that number as the index of the coordinate-list.
You need to login to post a reply.