How to exclude 0 from random class

前端 未结 0 634
后悔当初
后悔当初 2020-12-05 17:34

I\'m new to java and I was wondering how can I exclude 0 here. I was trying to make a random number game

        int num = r.nextInt(5);
        int guessUse         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题