黑车司机发车神器(JAVA)

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/chandler7k/article/details/58257300

之前看了一个虚假磁力链接的文章,拿来试试。

说白了就是随机填充40个字母或数字,不过有一定几率会发出真车。
代码实现:

/**
 * Created by zouhuanlin on 2017/2/25.
 */

public class OldDriver {
    public static void main(String[] args){
        java.util.Scanner input=new java.util.Scanner(System.in);
        System.out.println("黑车司机发车神器fianl edition");
        System.out.println("请输入需要的黑车数量");
        int ljs = input.nextInt();
        for(int i = 0;i <ljs;i++)
        {
            System.out.println("magnet:?xt=urn:btih:"+CLSC());
        }
    }
    public static String CLSC(){
        String cllj = "";
        String randomchar;
        String chars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
        for(int i = 0;i <40;i++)
        {
            int randomNumber = (int)(Math.random()*35);
            randomchar  = ""+chars.charAt(randomNumber);
            cllj = cllj+randomchar;
        }
        return cllj;

    }


}

运行效果:

黑车司机发车神器fianl edition
请输入需要的黑车数量
10
magnet:?xt=urn:btih:XPNPKBK1K6B0ZMYUQJ6UGPYZ8Q1MTV8JEIBDNJZW
magnet:?xt=urn:btih:O2SFNQZ5MDDLW16GSHTSJB6AZIK5XGO86HDVSAK1
magnet:?xt=urn:btih:LBO1IVYR0ZHIGI3WINXLUK4TL7XWA07G6L7T2AK1
magnet:?xt=urn:btih:GMB702W02PSMOGZPNZQY4H1KZ4WA7GZIBGA7ORZZ
magnet:?xt=urn:btih:HF5M4DV2BIROVZ82FAVYJ66ZCA7HN3BQBRS88B7M
magnet:?xt=urn:btih:0DS011SRTQ66ZFLRJ38EEFMYYI8PG1GR5O7WCRH0
magnet:?xt=urn:btih:QRNZQ0WLDBH3YSADBZKCTSBDTDJ2IO2YHNX7ZX7Y
magnet:?xt=urn:btih:0NXZZOVA08XCPUORQIU4WRUQX8YV7G4Q34Q7JGIN
magnet:?xt=urn:btih:WCQRNIEQMUQX5Q8RK1MWRYGUICLVE8YYPQPSCBE4
magnet:?xt=urn:btih:IU6ZXJWPRFIWALVEGRGZNCJQWEMB0K4ENN2H36VD

Process finished with exit code 0
展开阅读全文

没有更多推荐了,返回首页