For some reason I am receiving this error , cannot find symbol, method Math random() not found . If anyone knows why it would be of great help.
int digit1 = (int)(Math.random() * 10); int digit2 =(int)(Math.random()* 10);
this is supposed to give me two separate random digit variables between 1 and 10 I thought. Whats wrong with my code please help.