如何随机字符串? [英] how to random character string?

查看:73
本文介绍了如何随机字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个初学者,我只知道基本知识,现在,我有了一个项目,我的问题是如何使字符串随机化?我不知道.有人帮助我.

I am a beginner, and I just know the basic,and now, I got a project, my problem is how to randomize string? I don''t know. someone help me.

推荐答案

听起来像作业.尝试通过搜索网络来寻找想法.有很多示例: http://stackoverflow.com /questions/440133/how-do-i-create-a-random-alpha-numeric-string-in-c [
Sounds like homework. Try finding ideas by searching the net.There are lots of examples: Click[^].

For example: http://stackoverflow.com/questions/440133/how-do-i-create-a-random-alpha-numeric-string-in-c[^]


您似乎触手可及的解决方案是写虚假的字母,而不是正确的词.
You seem to have the solution at your fingertips, writing spurious letters instead of proper words.


您的问题可能不会产生预期的结果.您确定要对给定的字符串进行随机化还是要随机生成一个字符串(即随机排列还是随机生成)?

问候.

曼弗雷德(Manfred)
Your question may not yield the expected results. Are you sure you want to randomize a given string or is it that you want to generate a string randomly i.e. random permutation or rather random generation?

Regards.

Manfred


这篇关于如何随机字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆