Hallo Block35plus1,
zum Thema Bahnhof

:
Die Funktion Format ermöglicht das Formatieren von Zahlen oder Strings für die Ausgabe. Schau dir dazu vielleicht einmal die Onlinehilfe an.
Der Code oben:
Format('%.2d', [Lottozahlen[index]])
gibt einen String zurück, der die Zahl (Lottozahl[index]) immer zweistellig zurück gibt.