使用Java Random类生成随机数。
随机rand = new Random();
rand.nextInt(Math.abs((firstChoice - secondChoice))+ 1)+ Math.min(firstChoice,secondChoice);
GitHub上的代码:https://github.com/amandafarrell/RandomNumberGenerator
还没有评论或评分!要留下第一条评论或评分,请 。