4vZfvOpbipg85Oke2QgG8Q changeset

Changeset376262666637 (b)
Parent323563663339 (a)
ab
44Function ArrayShuffle(ByVal src())
55        Dim res
66        res = ArrayCopy(src)
...
7-        Dim u
7-        u = UBound(res)
...
99        Dim i
...
10-        For i = u To 1 Step -1
10+        For i = UBound(res) To 1 Step -1
...
1111                Dim j
1212                j = NumberRandom(0, i + 1)
1313                Dim t
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- Revision 323563663339
+++ Revision 376262666637
@@ -5,10 +5,8 @@
Function ArrayShuffle(ByVal src())
Dim res
res = ArrayCopy(src)
- Dim u
- u = UBound(res)
Dim i
- For i = u To 1 Step -1
+ For i = UBound(res) To 1 Step -1
Dim j
j = NumberRandom(0, i + 1)
Dim t