Random Numbers.
I am a bit confused of how to code "get a random number between -45 and 45".
double x = Math.random();
double x = Math.random() * 90;
int x = (int)(Math.random() * 90);
int x = (int)(Math.random() * 91) - 45;
int x = (int)(Math.random() * 90);
int x = (int)(Math.random() * 91) - 45;
int x = Greenfoot.getRandomNumber(91)-45;