Sub Makro1()
Sheets("Hárok1").Select
Range("A1").Select
x = Range(Selection, Selection.End(xlDown)).Rows.Count
a = Int(Rnd() * x) + 1
bb: b = Int(Rnd() * x) + 1
If b = a Then GoTo bb
cc: c = Int(Rnd() * x) + 1
If c = b Or c = a Then GoTo cc
Sheets("Hárok2").Select
Range("A1") = Sheets("Hárok1").Cells(a, 1)
Range("A2") = Sheets("Hárok1").Cells(b, 1)
Range("A3") = Sheets("Hárok1").Cells(c, 1)
End Subcitovat