Home » JAVA Programming » Numbers » Question
  1. Math.random() guarantees uniqueness?
    1. False
    2. true
    3. NA
    4. NA
    5. NA
Correct Option: A

Math.random() doesn’t guarantee uniqueness. To guarantee uniqueness we must store the generated value in the database and compare against already generated values.



Your comments will be displayed only after manual approval.