Answer to Question #241636 in Java | JSP | JSF for doeboy

Question #241636

Write a program that checks the top 3 most likely outcome of numbers from 0 to 31


1
Expert's answer
2021-09-25T03:03:41-0400


package random1;



public class Random1 {


   
    public static void main(String[] args) {
        System.out.println("The top 3 most likely outcome of numbers from 0 to 31");
        for(int x =0; x<3; x++){
      int number = (int)(31.0 * Math.random());
      System.out.println(number);
}






    }
    
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS