java ran code example Example: java random int nombreAleatoire = Min + (int)(Math.random() * ((Max - Min) + 1));