如何用java技术制作彩票系统
Random ran = new Random(system . current time millis());
String[] strs = {"1一等奖","二等奖","三等奖","水杯" };
int IP = math . ABS(ran . nextint()% strs . length);
System.out.println("你赢了:"+strs[IP]);
String[] strs = {"1一等奖","二等奖","三等奖","水杯" };
int IP = math . ABS(ran . nextint()% strs . length);
System.out.println("你赢了:"+strs[IP]);