This site requires JavaScript, please enable it in your browser!
Greenfoot
Username
Password
Remember Me?
Sign Up, Lost Password
Activity
About
Documentation
Download
Discuss
Scenarios
Iz.\uo
wrote ...
2019/3/24
Can I place an object randomly by choosing from ten coordinates I set in a list?
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
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.
X