举报
#include <array.au3> Dim $n, $var[6], $y = 5 For $x = 0 To $y Dim $num[10] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0] For $i = 0 To 5 $random=Random(0, UBound($num)-1, 1) $n &= $num[$random] _ArrayDelete($num,$random) Next $var[$x] = $n $n = '' Next _ArrayDisplay($var)
查看全部评分
Dim $ok While 1 $number = suiji() $yanzheng = IniRead("nunber.ini","Number",$number,0) If $yanzheng = 0 Then ExitLoop WEnd IniWrite("nunber.ini","Number",$ok,1) MsgBox(0,"",$ok) Func suiji() $ok = Random(0,999999,1) $num = StringLen($ok) $a = 6-$num For $i = 0 To $a If $i<>0 Then $ok = "0"&$ok&"" Next Return $ok EndFunc
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-3 18:14 , Processed in 0.157273 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.