What does math.hypot, math.abs and math.signmum do?
public void act()
{
int rn=Greenfoot.getRandomNumber(100)-50;
int sgnm=Math.signum(rn);
if(sgnm==1) {
//code
}
if(sgn==0) {
//code
}
if(sgn==-1) {
//code
}
}