liurunyu
6 天以前 7aab004601e77890b158f19d1735594a8326feaa
pipIrr-platform/pipIrr-web/pipIrr-web-wechat/src/main/java/com/dy/pipIrrWechat/sms/RandomCode.java
New file
@@ -0,0 +1,18 @@
package com.dy.pipIrrWechat.sms;
/**
 * @author ZhuBaoMin
 * @date 2024-03-22 15:34
 * @LastEditTime 2024-03-22 15:34
 * @Description
 */
/**
 * 生成6位随机数
 */
public class RandomCode {
    public static int genCode(){
        int code = (int)((Math.random() * 9 + 1) * 100000);
        return code;
    }
}