JAVA Constructors and Methods
Which of the following options is the best for generating random integer 0 or 1?

(int)Math.random() + 1
(int)Math.random()
(int)(Math.random() + 0.2)
(int)(Math.random() + 0.5)

ANSWER DOWNLOAD EXAMIANS APP