wuxw
2020-02-09 bc11864c5e48a159ddaf0b6f0fee3879bd73c2ca
java110-core/src/main/java/com/java110/core/factory/GenerateCodeFactory.java
@@ -825,4 +825,18 @@
        }
        return result;
    }
    /**
     * 获取随机数
     *
     * @return
     */
    public static String getRandomCode(int bit) {
        Random random = new Random();
        String result = "";
        for (int i = 0; i < bit; i++) {
            result += random.nextInt(10);
        }
        return result;
    }
}