求解?????????

解决方案 »

  1.   

    谢谢!  只是初学不是很理解你的意思 ?就是想问一下  String[] name = new String[]{"石头","剪刀","布"}; 就是在这3个字符里面产生随机  想请教?  
      

  2.   

    楼上已经回答我要回答你的问题了,就是这么个意思。上个代码看下吧:name[Math.random(0,2)];
      

  3.   

            int    a =  new Random().nextInt(100);

    Long   b =  System.currentTimeMillis();

    String c =  UUID.randomUUID().toString();