What is math.random in Java | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What is math.random in Java

I was in a challenge and I was confused since I didn't see that in my math() class lesson. Please help me

9th Jan 2018, 2:57 PM
Kofi Appiakorang Jnr
Kofi Appiakorang Jnr - avatar
2 Respostas
+ 7
java.lang.Math.random() returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0
9th Jan 2018, 2:59 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 3
Thanks Nafis
9th Jan 2018, 3:00 PM
Kofi Appiakorang Jnr
Kofi Appiakorang Jnr - avatar