StringHelperToRandom Method (String, Int32) |
取得一个随机的字符串
Namespace: X3Platform.UtilAssembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntaxpublic static string ToRandom(
string chars,
int length
)
public:
static String^ ToRandom(
String^ chars,
int length
)
Parameters
- chars
- Type: SystemString
[Missing <param name="chars"/> documentation for "M:X3Platform.Util.StringHelper.ToRandom(System.String,System.Int32)"]
- length
- Type: SystemInt32
[Missing <param name="length"/> documentation for "M:X3Platform.Util.StringHelper.ToRandom(System.String,System.Int32)"]
Return Value
Type:
String长为length的随机的字符串
See Also