本帖最后由 KD飞飞 于 2024-11-8 09:00 编辑
这次补全了大写, 小写,大小写混合,三种
而且非常简单,新手一看就会, 没有用任何难懂内容
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 变量名 | 类 型 | 数组 | 备 注 | 随机数 | 整数型 | 0 |
计次循环首 (26, 初始加入 ) 加入成员 (随机数, 64 + 初始加入 ) 计次循环尾 ()置随机数种子 ()取随机字母大小写混合 (20 )只随机小写 (10 )只随机大写 (10 )变量名 | 类 型 | 静态 | 数组 | 备 注 | 是否大写 | 整数型 | | | a | 整数型 | | | 取数组哪一位 | 整数型 | | | 字母结果 | 文本型 | | 0 |
如果真 (随机生成多少个 > 0 )  计次循环首 (随机生成多少个, a )   是否大写 = 取随机数 (1, 2 )   取数组哪一位 = 取随机数 (1, 26 )  加入成员 (字母结果, 字符 (随机数 [取数组哪一位 ]))   如果真 (是否大写 = 2 )    字母结果 [a ] = 到小写 (字母结果 [a ])    计次循环尾 ()调试输出 (字母结果)
变量名 | 类 型 | 静态 | 数组 | 备 注 | sa | 整数型 | | | 小写结果 | 文本型 | | 0 |
如果真 (随机次数小写 > 0 ) 计次循环首 (随机次数小写, sa ) 加入成员 (小写结果, 到小写 (字符 (随机数 [取随机数 (1, 26 )])) )  计次循环尾 ()调试输出 (小写结果)变量名 | 类 型 | 静态 | 数组 | 备 注 | saa | 整数型 | | | 大写结果 | 文本型 | | 0 |
如果真 (随机次数小写 > 0 ) 计次循环首 (随机次数小写, saa ) 加入成员 (大写结果, 字符 (随机数 [取随机数 (1, 26 )]))  计次循环尾 ()调试输出 (大写结果)
子程序缩减版
窗口程序集名 | 保 留 | 保 留 | 备 注 | 窗口程序集_启动窗口 | | | | 变量名 | 类 型 | 数组 | 备 注 | 随机数 | 整数型 | 0 |
计次循环首 (26, 初始加入 ) 加入成员 (随机数, 64 + 初始加入 ) 计次循环尾 ()置随机数种子 ()取随机字母大小写混合 (20 ) 如果真 (随机生成多少个 > 0 ) 计次循环首 (随机生成多少个, mm )  如果 (取随机数 (0, 1 ) = 1 )  只随机小写 (1 )       只随机大写 (1 )    计次循环尾 () 变量名 | 类 型 | 静态 | 数组 | 备 注 | sa | 整数型 | | | 小写结果 | 文本型 | | 0 |
如果真 (随机次数小写 > 0 ) 计次循环首 (随机次数小写, sa ) 加入成员 (小写结果, 到小写 (字符 (随机数 [取随机数 (1, 26 )])) )  计次循环尾 ()调试输出 (小写结果)变量名 | 类 型 | 静态 | 数组 | 备 注 | saa | 整数型 | | | 大写结果 | 文本型 | | 0 |
如果真 (随机次数小写 > 0 ) 计次循环首 (随机次数小写, saa ) 加入成员 (大写结果, 字符 (随机数 [取随机数 (1, 26 )]))  计次循环尾 ()调试输出 (大写结果)
子程序再次缩减版极简,从上面向下逐步演化而来
最后一个子程序其实可以优化在缩减很多行,懒得写了
|