Error in random function
This program is cant be compiled (some error in Math.random) public class Generator { public static void main (String[] args) { String[] listOne={"Кровавые","Чудовищные","Устрашающие", "Надвигающиеся","Технологические", "Космические","Новые","Полезные"}; String[] listTwo={"Зубы","Когти","Лезвия","Взгляды", "Воспоминания","Следы","Слезы","Приключения","Навыки"}; String[] listThree={"Потомков","Предков","Динороботов", "Злодеев","Карликов","Крыс","Монстры"}; String[] listFour={"Часть","Эпизод","Книга"}; String[] listFive={"1","2","3","6","12","7","4","19","8","0","9","10"}; String[] listSix={"Смертльная","Черная","Белая", "Последняя","Первая"}; String[] listSeven={"Книга","Песнь","Мысль", "Жизнь","Надежда"}; int One=listOne.length; int Two=listTwo.length; int Three=listThree.length; int Four=listFour.length; int Five=listFive.length; int Six=listSix.length; int Seven=listSeven.length; int rand1 = (int) (Math.random() * One); int rand2 = (int) (Math.random() * Two); int rand3 = (int) (Math.random() * Three); int rand4 = (int) (Math.random() * Four); int rand5 = (int) (Math.random() * Five); int rand6 = (int) (Math.random() * Six); int rand7 = (int) (Math.random() * Seven); String phrase=listOne[rand1]+" "+listTwo[rand2]+" "+listThree[rand3]+ " "+listFour[rand4]+" "+listFive[rand5]+": "+listSix[rand6]+ " "+listSeven[rand7]; System.out.println("Coming soon: "+phrase); } }