【发布时间】:2012-12-04 10:43:27
【问题描述】:
我需要编写一个函数来随机化我的字符串中的一些单词。例如:
[Hello|Hi] guys. This is my [code|string]
函数应该返回:
Hello guys. This is my code
或
Hi guys. This is my string
【问题讨论】:
-
这叫做排列...
-
你想让它有时随机说“你好”,有时说“嗨”,“代码”和“字符串”也一样?
-
是的
标签: c# random permutation