Sub AllInOneGruppe1_91dage273oevelser()
Dim myUsedNumbers(1 To 1080) As Boolean
Dim iCount, myRandom As Integer
Randomize
For iCount = 1 To 3
Do
myRandom = Int(108 * Rnd) + 325
Loop While myUsedNumbers(myRandom)
Range("A" & iCount).Value = myRandom
myUsedNumbers(myRandom) = True
Next iCount
Dim myUsedNumbers2(1 To 1080) As Boolean
Dim iCount2, myRandom2 As Integer
Randomize
For iCount2 = 1 To 3
Do
myRandom2 = Int(108 * Rnd) + 109
Loop While myUsedNumbers2(myRandom2)
Range("A" & iCount2 + 3).Value = myRandom2
myUsedNumbers2(myRandom2) = True
Next iCount2
Dim myUsedNumbers3(1 To 1080) As Boolean
Dim iCount3, myRandom3 As Integer
Randomize
For iCount3 = 1 To 2
Do
myRandom3 = Int(108 * Rnd) + 541
Loop While myUsedNumbers3(myRandom3)
Range("A" & iCount3 + 6).Value = myRandom3
myUsedNumbers3(myRandom3) = True
Next iCount3
Dim myUsedNumbers4(1 To 1080) As Boolean
Dim iCount4, myRandom4 As Integer
Randomize
For iCount4 = 1 To 2
Do
myRandom4 = Int(108 * Rnd) + 757
Loop While myUsedNumbers4(myRandom4)
Range("A" & iCount4 + 8).Value = myRandom4
myUsedNumbers4(myRandom4) = True
Next iCount4
Dim myUsedNumbers5(1 To 1026) As Boolean
Dim iCount5, myRandom5 As Integer
Randomize
For iCount5 = 1 To 4
Do
myRandom5 = Int(54 * Rnd) + 973
Loop While myUsedNumbers5(myRandom5)
Range("A" & iCount5 + 10).Value = myRandom5
myUsedNumbers5(myRandom5) = True
Next iCount5
Dim myUsedNumbers6(1 To 1080) As Boolean
Dim iCount6, myRandom6 As Integer
Randomize
For iCount6 = 1 To 50
Do
myRandom6 = Int(108 * Rnd) + 1
Loop While myUsedNumbers6(myRandom6)
Range("A" & iCount6 + 14).Value = myRandom6
myUsedNumbers6(myRandom6) = True
Next iCount6
Dim myUsedNumbers7(1 To 1080) As Boolean
Dim iCount7, myRandom7 As Integer
Randomize
For iCount7 = 1 To 50
Do
myRandom7 = Int(108 * Rnd) + 217
Loop While myUsedNumbers7(myRandom7)
Range("A" & iCount7 + 64).Value = myRandom7
myUsedNumbers7(myRandom7) = True
Next iCount7
Dim myUsedNumbers8(1 To 1080) As Boolean
Dim iCount8, myRandom8 As Integer
Randomize
For iCount8 = 1 To 50
Do
myRandom8 = Int(108 * Rnd) + 433
Loop While myUsedNumbers8(myRandom8)
Range("A" & iCount8 + 114).Value = myRandom8
myUsedNumbers8(myRandom8) = True
Next iCount8
Dim myUsedNumbers9(1 To 1080) As Boolean
Dim iCount9, myRandom9 As Integer
Randomize
For iCount9 = 1 To 50
Do
myRandom9 = Int(108 * Rnd) + 649
Loop While myUsedNumbers9(myRandom9)
Range("A" & iCount9 + 164).Value = myRandom9
myUsedNumbers9(myRandom9) = True
Next iCount9
Dim myUsedNumbers10(1 To 1080) As Boolean
Dim iCount10, myRandom10 As Integer
Randomize
For iCount10 = 1 To 59
Do
myRandom10 = Int(108 * Rnd) + 865
Loop While myUsedNumbers10(myRandom10)
Range("A" & iCount10 + 214).Value = myRandom10
myUsedNumbers10(myRandom10) = True
Next iCount10
For iCountF = 1 To 3
Dim myUsedNumbersRC(1 To 1080) As Boolean
Dim iCountRC, myRandomRC As Integer
Randomize
For iCountRC = 1 To 273
Do
myRandomRC = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC(myRandomRC)
Range("B" & iCountRC).Value = myRandomRC
myUsedNumbersRC(myRandomRC) = True
Next iCountRC
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF
For iCountF2 = 1 To 3
Dim myUsedNumbersRC2(1 To 1080) As Boolean
Dim iCountRC2, myRandomRC2 As Integer
Randomize
For iCountRC2 = 1 To 273
Do
myRandomRC2 = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC2(myRandomRC2)
Range("B" & iCountRC2).Value = myRandomRC2
myUsedNumbersRC2(myRandomRC2) = True
Next iCountRC2
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF2
For iCountF3 = 1 To 3
Dim myUsedNumbersRC3(1 To 1080) As Boolean
Dim iCountRC3, myRandomRC3 As Integer
Randomize
For iCountRC3 = 1 To 273
Do
myRandomRC3 = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC3(myRandomRC3)
Range("B" & iCountRC3).Value = myRandomRC3
myUsedNumbersRC3(myRandomRC3) = True
Next iCountRC3
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF3
For iCountF4 = 1 To 3
Dim myUsedNumbersRC4(1 To 1080) As Boolean
Dim iCountRC4, myRandomRC4 As Integer
Randomize
For iCountRC4 = 1 To 273
Do
myRandomRC4 = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC4(myRandomRC4)
Range("B" & iCountRC4).Value = myRandomRC4
myUsedNumbersRC4(myRandomRC4) = True
Next iCountRC4
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF4
For iCountF5 = 1 To 3
Dim myUsedNumbersRC5(1 To 1080) As Boolean
Dim iCountRC5, myRandomRC5 As Integer
Randomize
For iCountRC5 = 1 To 273
Do
myRandomRC5 = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC5(myRandomRC5)
Range("B" & iCountRC5).Value = myRandomRC5
myUsedNumbersRC5(myRandomRC5) = True
Next iCountRC5
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF5
For iCountF6 = 1 To 3
Dim myUsedNumbersRC6(1 To 1080) As Boolean
Dim iCountRC6, myRandomRC6 As Integer
Randomize
For iCountRC6 = 1 To 273
Do
myRandomRC6 = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC6(myRandomRC6)
Range("B" & iCountRC6).Value = myRandomRC6
myUsedNumbersRC6(myRandomRC6) = True
Next iCountRC6
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF6
For iCountF7 = 1 To 3
Dim myUsedNumbersRC7(1 To 1080) As Boolean
Dim iCountRC7, myRandomRC7 As Integer
Randomize
For iCountRC7 = 1 To 273
Do
myRandomRC7 = Int(1080 * Rnd) + 1
Loop While myUsedNumbersRC7(myRandomRC7)
Range("B" & iCountRC7).Value = myRandomRC7
myUsedNumbersRC7(myRandomRC7) = True
Next iCountRC7
x = Range("B" & Rows.Count).End(xlUp).Row
Range("A1:B" & x).Sort Key1:=Range("B1"), Order1:=xlAscending
Next iCountF7
Columns("B:B").Select
Selection.Delete Shift:=xlToLeft
End Sub