Soo this script appears to work sometimes, but other times it returns an array error at line 22. I'm not sure what's going on, anyone want to take a stab at it?
#include <Array.au3>
Dim $kSpace[36]
For $i = 0 To 9; Fill numbers 0-9
$kSpace[$i] = $i
Next
For $i = 10 To 35; Fill Letters A-Z
$kSpace[$i] = Chr($i + 55)
Next
$n = 3
Dim $k[$n]
If $n > 0 Then
$n = $n - 1
EndIf
For $m = 0 To $n
For $i = 0 To 5
$k[$m] = $k[$m] & $kSpace[Random(0, 36, 1)]
Next
Next
_ArrayDisplay($k)
Error:
.au3 (22) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.:
$k[$m] = $k[$m] & $kSpace[Random(0, 36, 1)]
$k[$m] = $k[$m] & ^ ERROR