public static byte randomByte(int max){
  return (byte)random.nextInt(max + 1);
}

public static byte randomByte ( int max ) { return ( byte ) random . nextInt ( max + 1 ) ; }
get random byte between 0 and max ( included ) .
