小小爱小吃
Code_nst = "1234567890" Recode_nst = RoundStr(Code_nst,8) Function RoundStr(str,Num) s = "" for i = 1 to Num Randomize strLen = Len(str) t = Round((Rnd * (strLen-1))+1) s = s & mid(str,t,1) Next RoundStr = s End Function
夏日风清凉
// 设定随机数发生公式的种子值 srand( (unsigned)time( NULL ) ); // 获得0-9随机数 int i = rand() % 10;//随机字母小写char ch = rand()%26+97;//随机字母大写char ch = rand()%26+65;//////////////////////////////一位一位随机生成
优质英语培训问答知识库