+ 1

How to generate random number

Hey friends I just want to ask how to generate random number in Java. I learnt it few years ago but forgot.

2nd Jun 2019, 9:58 AM
Bakar Jokhio
Bakar Jokhio - avatar
2 Antworten
0
Thanks code works but, What do the last statement does? 0<=n<100 I mean I had to remove this line in order to make it run
2nd Jun 2019, 12:01 PM
Bakar Jokhio
Bakar Jokhio - avatar
0
Oh
2nd Jun 2019, 12:13 PM
Bakar Jokhio
Bakar Jokhio - avatar