so for my object to turn a random direction. Either up, down, left or right. I used
wouldnt this mean that the options would be 0, 90, 180, 270, and 360?
my professor said "getRandomNumber will return 0, 1, 2, 3, 4, meaning that going forward is 2x as likely. 0.5"
I'm just trying to get clarification, THANK YOU
1 | turn(Greenfoot.getRandomNumber( 4 )* 90 ); |