23rd Jul 2022, 7:07 AM
Ayush Singh
Ayush Singh - avatar
4 Answers
+ 2
Line 30: nextInt() method from Random class only allows one argument (upper bound of the range). Lower bound of the range is not configurable, the range always starts with zero int num2 = random.nextInt( 3 );
23rd Jul 2022, 7:50 AM
Ipang
+ 1
Ipang Thanks for helping mešŸ˜Š
23rd Jul 2022, 8:11 AM
Ayush Singh
Ayush Singh - avatar
+ 1
I also made a Rock, Paper, Scissors game few days ago. You can also refer to that. https://code.sololearn.com/c9HNFPX627Gk/?ref=app
23rd Jul 2022, 9:51 AM
Amul Gaurav
Amul Gaurav - avatar
+ 1
Amul Gaurav ThanksšŸ˜Š
23rd Jul 2022, 1:49 PM
Ayush Singh
Ayush Singh - avatar