|
发表于 2024-11-7 17:01:22
|
显示全部楼层
广东省广州市
本帖最后由 木小果 于 2024-11-7 17:02 编辑
我也发一个
time = 取启动时间 ()调试输出 (getRandomLetters (10000, 3 )) 调试输出 (“耗时”, 取启动时间 () - time )返回 (0 ) |
getRandomLetters | 文本型 | | |
number | 整数型 | | | | format | 整数型 | | | |
变量名 | 类 型 | 静态 | 数组 | 备 注 | i | 整数型 | | | let | 文本型 | | | val | 文本型 | | |
计次循环首 (number, i ) 置随机数种子 () let = 多项选择 (取随机数 (1, 26 ), “a”, “b”, “c”, “d”, “e”, “f”, “g”, “h”, “i”, “j”, “k”, “l”, “m”, “n”, “o”, “p”, “q”, “r”, “s”, “t”, “u”, “v”, “w”, “x”, “y”, “z”) val = val + 多项选择 (format, 到大写 (let ), let, 选择 (取随机数 (1, 2 ) = 1, 到大写 (let ), let )) 计次循环尾 ()返回 (val ) |
|