+ 1

double d = Math.random(); is useful for ?

why it is used ?

22nd Jan 2018, 5:58 AM
saiteja
saiteja - avatar
3 Answers
+ 1
it is useful whenever you need something random ; result from a dice, peek a random item from a list, etc
22nd Jan 2018, 7:39 AM
Vincent
Vincent - avatar
0
it is used to create random numbers. especially used for giving a password to user.
2nd Mar 2018, 1:42 PM
venkatasubramani
venkatasubramani - avatar