阅读背景:

使用变量在java中创建随机整数

来源:互联网 

Im creating a simple rpg game where you fight monsters. how your attack is generated is by generating a random number with the max set as your attack stat. the attack stat is declared at 0 at the begining of the class but later is set to one of 3 numbers (10,15,or20) later on depending on what class the player chooses. then i use this line to generate the players attack:Im creating a simple rpg game where you fight m




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: