1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
    }
}