import java.util.Random; import org.junit.Test; public class Demo1 { public void getChance(int percentage){ Random random = new Random(); int i = random.nextInt(99); if(i>=0&&i
本文共 182 字,大约阅读时间需要 1 分钟。
import java.util.Random; import org.junit.Test; public class Demo1 { public void getChance(int percentage){ Random random = new Random(); int i = random.nextInt(99); if(i>=0&&i
转载地址:http://hngpa.baihongyu.com/