package com.ruoyi.bnbackstage.util;
import org.springframework.stereotype.Service;
@Service
public class VerificationCodeUtil {
public Integer getRandomCode(){
java.util.Random random = new java.util.Random();
int code = random.nextInt(9000) + 1000;
return code;
}
public Integer getPwd() {
int newNum = (int) ((Math.random() * 9 + 1) * 100000);
return newNum;
}
}



