+ 1

Library random?

How can I put a random number into my code, I know I have to write Math.round(Math.random()*(b-a)+a) but i don't know if i have to use a extra library or something like that, please help D:

5th Apr 2017, 6:22 PM
Julián Romero González
Julián Romero González - avatar
3 Réponses
+ 17
If it's Java, then you don't need any external library.
5th Apr 2017, 6:24 PM
Shamima Yasmin
Shamima Yasmin - avatar
0
thank you all, I solved my problem :)
5th Apr 2017, 6:46 PM
Julián Romero González
Julián Romero González - avatar
0
You can always use functions.
5th Apr 2017, 7:01 PM
Luca Garrera