How can I generate random alphanumeric strings?

后端 未结 30 2768
予麋鹿
予麋鹿 2020-11-22 03:17

How can I generate a random 8 character alphanumeric string in C#?

30条回答
  •  甜味超标
    2020-11-22 03:44

    One line of code Membership.GeneratePassword() does the trick :)

    Here is a demo for the same.

提交回复
热议问题