0 1 2 3 4 5 6 7 8 9 < > * + -     等15个字符随机输出4行21列 密码区!并且可以复制出来使用!用高手么??请留下QQ吧!谢谢

解决方案 »

  1.   


    public class Test {
    //种子
    static String[] seed = {"0","1","2","3","4","5","6","7","8","9","<",">","*","+","-"};



    public static void main(String[] args) {
    //行数
    int colnum = 4;
    //列数
    int rownum = 21;

    for( int i=0;i<colnum;i++){
    for(int j=0;j<rownum;j++){
    System.out.print(seed[getIndex()] + " ");
    }
    System.out.println();
    }
    }

    public static int getIndex(){
    int rand = (int)(Math.random()*1000);
    return rand%15;
    }
    }
      

  2.   


    6 8 9 5 < 1 8 0 6 5 0 + 1 2 1 + < + 0 8 0 
    - 2 4 3 3 1 > 8 5 7 6 0 1 + 1 + + 5 7 2 4 
    7 < 1 - * 3 5 9 - - * < 6 0 7 0 4 4 4 * > 
    1 5 8 6 4 3 + * * 3 < * 8 > < * 2 + 8 4 5