public static Color createRandomColour(){
  float r=rand.nextFloat();
  float g=rand.nextFloat();
  float b=rand.nextFloat();
  Color randomColor=new Color(r,g,b);
  return randomColor;
}

public static Color createRandomColour ( ) { float r = rand . nextFloat ( ) ; float g = rand . nextFloat ( ) ; float b = rand . nextFloat ( ) ; Color randomColor = new Color ( r , g , b ) ; return randomColor ; }
creates a random colour .
