A Admin • 831K Points Coach Q. Which of the following options is the best for generating random integer 0 or 1? (A) (int)Math.random() (B) (int)Math.random() + 1 (C) (int)(Math.random() + 0.5) (D) (int)(Math.random() + 0.2) Correct Answer - Option(C) Views: 18 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.