zoukankan      html  css  js  c++  java
  • [转]随机生成密码

    #region 随机生成密码
            public static string RandomPassword(int pwdlen)
            {
                string tmpstr = "";
                string pwdchars = "abcdefghijklmnopqrstuvwxyz0123456789";
                int iRandNum;
                Random rnd = new Random();
                for (int i = 0; i < pwdlen; i++)
                {
                    iRandNum = rnd.Next(pwdchars.Length);
                    tmpstr += pwdchars[iRandNum];
                }
                return tmpstr;
            }
            #endregion
  • 相关阅读:
    oracle-PL/SQL1
    ROS之Gazebo
    ROS之urdf 2
    ROS之urdf 1
    ROS 面部识别
    ROS x Arduino
    STM32F0的低功耗模式
    项目进度
    C++函数返回为引用
    STM32F0的多路ADC 无DMA
  • 原文地址:https://www.cnblogs.com/freeliver54/p/1203855.html
Copyright © 2011-2022 走看看