Func ranidcard()
$STR = "11000,11022,12022,13013,13022,13042,13052,13062,13068,13073,13092,13102,14010,14022,14042,14062,14082,14092,14103,15010,15022,15050,15070,15222,15262,21010,21021,21041,21070,21090,21112,21140,22020,22040,22062,22240,23012,23022,23040,23060,23071,23090,23112,23272,31012,32020,32038,32058,32072,32092,32118,33010,33022,33040,33070,33090,33112,34020,34040,34072,34102,34122,34150,34182,35018,35040,35052,35070,35090,36012,36042,36070,36080,36092,36110,37011,37030,37050,37070,37083,37110,37132,37152,37172,41018,41030,41048,41070,41082,41102,41130,41142,41162,42010,42020,42052,42070,42100,42118,42282,43020,43040,43052,43070,43092,43112,43123,44010,44022,44050,44070,44092,44138,44162,44188,44532,45020,45032,45050,45088,45102,45122,46010,46903,50011,50023,51011,51032,51060,51081,51110,51132,51152,51180,51208,51332,51342,52011,52032,52222,52242,52270,53012,53040,53060,53232,53253,53272,53310,53352,54212,54230,54242,54262,61012,61033,61050,61062,61080,61092,62010,62050,62072,62100,62262,62302,63212,63262,64010,64032,65012,65232,65292,65312,65402,65432"
$dizi = StringSplit($STR, ",")
$dizi2 = Random(1, $dizi[0] - 1, 1)
$dizi = $dizi[$dizi2] & Random(0, 9, 1)
$year = Random(1968, 1990, 1)
$moth = Random(1, 12, 1)
If $moth < 10 Then
$moth = "0" & $moth
EndIf
$days = Random(1, 28, 1)
If $days < 10 Then
$days = "0" & $days
EndIf
$xuhao = Random(1, 999, 1)
If $xuhao < 10 Then
$xuhao = "00" & $xuhao
ElseIf $xuhao >= 10 And $xuhao < 100 Then
$xuhao = "0" & $xuhao
EndIf
$17 = $dizi & $year & $moth & $days & $xuhao
Dim $iden = StringSplit($17 & "0", "", 2)
If StringLower($iden[UBound($iden) - 1]) = "x" Then $iden[UBound($iden) - 1] = 10
Dim $weighing = 0
For $i = UBound($iden) - 2 To 0 Step -1
$weighing += $iden[$i] * (2 ^ (UBound($iden) - $i - 1))
Next
$ma = Mod(12 - Mod($weighing, 11), 11)
$18 = $17 & $ma
Return $18
EndFunc ;==>ranidcard