文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>计算中奖简单算法

计算中奖简单算法

时间:2010-09-25  来源:日光倾城。

 1 import java.util.*;
2
3
4 public class getRandom {
5 public static void main(String [] args){
6 //Random random = new Random(unchecked((int)DateTime.Now.Ticks));
7 Random random = new Random();
8 int a = random.nextInt(3);
9 if(a == 1){
10 System.out.println("中奖了");
11 }else{
12 System.out.println("没有中奖了");
13 }
14 }
15 }

 

相关阅读 更多 +
排行榜 更多 +
幸存者的命运

幸存者的命运

飞行射击 下载
精英战区3d

精英战区3d

飞行射击 下载
货运猎人

货运猎人

飞行射击 下载