title: Set text to random color & opacity javaFX
body: <p>I need a javafx program to set text to a random color and opacity I'm not sure on how to do it? here is a sample of my code</p>
  
  <pre><code>Text text1 = new Text();
  text1.setText("Java");
  text1.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.ITALIC, 22));
  text1.setRotate(90);
  gridpane.add(text1, 3, 1);
  </code></pre>