Sail E0 Webinar
Question
Which of the following options is the best for generating random integer 0 or 1?
Options:
A .  (int)Math.random()
B .  (int)Math.random() + 1
C .  (int)(Math.random() + 0.5)
D .  (int)(Math.random() + 0.2)
Answer: Option C

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers