All I need to do is get the array to output a random colour.
package height_generator;
import java.util.Random;
public class Height_generator {
Random randomGenerator = new Random();
int select = randomGenerator.nextInt();
public static void main(String[] args) {
String[] aryhair = {"Blue","Red","Black","Blonde"};
double[] ary1 = {Math.floor(Math.random()*4)};
double ranheight = Math.floor(Math.random()*9+58);
System.out.println(ranheight+" Inches Tall");
System.out.println(aryhair[ary1[0]]);
}
}
It’s incredibly difficult and I just can’t get it to work.